1
0

Added list create and update methods

This commit is contained in:
konrad
2018-06-10 14:14:10 +02:00
committed by kolaente
parent fb4c9d580c
commit f372128784
7 changed files with 167 additions and 6 deletions

View File

@ -16,7 +16,7 @@ func CreateUser(user User) (newUser User, err error) {
// Check if the user already existst with that username
existingUser, exists, err := GetUser(User{Username: newUser.Username})
if err != nil && !IsErrUserDoesNotExist(err){
if err != nil && !IsErrUserDoesNotExist(err) {
return User{}, err
}
if exists {