refactor: UpdateAccountName needs to return *AccountError
This commit is contained in:
parent
1c3bfdc493
commit
24d491ec4e
|
@ -93,7 +93,7 @@ func (s *AccountServiceDefault) CreateAccount(email string, password string) (*m
|
||||||
return &user, nil
|
return &user, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s AccountServiceDefault) UpdateAccountName(userId uint, firstName string, lastName string) error {
|
func (s AccountServiceDefault) UpdateAccountName(userId uint, firstName string, lastName string) *AccountError {
|
||||||
return s.updateAccountInfo(userId, models.User{FirstName: firstName, LastName: lastName})
|
return s.updateAccountInfo(userId, models.User{FirstName: firstName, LastName: lastName})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue