fix: payload update staff
This commit is contained in:
parent
642566c8b2
commit
13a8481f22
@ -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",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user