diff --git a/internal/api/http/auth/update.go b/internal/api/http/auth/update.go index e5c6537..cef4f0d 100644 --- a/internal/api/http/auth/update.go +++ b/internal/api/http/auth/update.go @@ -49,7 +49,7 @@ func UpdateStaff( ID: id, Email: spec.Email, Password: spec.Password, - Username: spec.Username, + Name: spec.Name, } if err := authSvc.UpdateStaff(staff); err != nil { @@ -64,9 +64,9 @@ func UpdateStaff( return } - responsePayload := struct{ + responsePayload := struct { Message string - } { + }{ Message: "update staff success", }