Created
December 27, 2017 15:12
-
-
Save caalberts/3a05d1ceee44b94dacd976ba669e686c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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