fix: payload update staff
This commit is contained in:
@@ -49,7 +49,7 @@ func UpdateStaff(
|
|||||||
ID: id,
|
ID: id,
|
||||||
Email: spec.Email,
|
Email: spec.Email,
|
||||||
Password: spec.Password,
|
Password: spec.Password,
|
||||||
Username: spec.Username,
|
Name: spec.Name,
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := authSvc.UpdateStaff(staff); err != nil {
|
if err := authSvc.UpdateStaff(staff); err != nil {
|
||||||
@@ -64,9 +64,9 @@ func UpdateStaff(
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
responsePayload := struct{
|
responsePayload := struct {
|
||||||
Message string
|
Message string
|
||||||
} {
|
}{
|
||||||
Message: "update staff success",
|
Message: "update staff success",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user