From 24d491ec4e0bb9c65d9a5897429e76475d2115cf Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Thu, 15 Feb 2024 20:56:48 -0500 Subject: [PATCH] refactor: UpdateAccountName needs to return *AccountError --- account/account.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/account/account.go b/account/account.go index 352c022..cf32df2 100644 --- a/account/account.go +++ b/account/account.go @@ -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}) }