Skip to content

Instantly share code, notes, and snippets.

@caalberts
Created December 27, 2017 15:12
Show Gist options
  • Save caalberts/3a05d1ceee44b94dacd976ba669e686c to your computer and use it in GitHub Desktop.
Save caalberts/3a05d1ceee44b94dacd976ba669e686c to your computer and use it in GitHub Desktop.
func (r *AccountRepository) UpdateAccount(id string, data map[string]interface{}) (*Account, error) {
_, err := r.proxy.HMSet(id, data)
if err != nil {
return nil, err
} else {
return r.FetchAccount(id)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment