refactor: UpdateAccountName needs to return *AccountError

This commit is contained in:
Derrick Hammer 2024-02-15 20:56:48 -05:00
parent 1c3bfdc493
commit 24d491ec4e
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ func (s *AccountServiceDefault) CreateAccount(email string, password string) (*m
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})
}