From 13a8481f221a5f7f19dfcaf78a0063b041fe2dc7 Mon Sep 17 00:00:00 2001 From: ericprd Date: Mon, 3 Mar 2025 13:23:04 +0800 Subject: [PATCH] fix: payload update staff --- internal/api/http/auth/update.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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", }