mirror of
https://github.com/wgh136/nysoure.git
synced 2025-12-16 15:51:14 +00:00
Add charactor api.
This commit is contained in:
@@ -239,7 +239,7 @@ func handleUpdateResource(c fiber.Ctx) error {
|
||||
if !ok {
|
||||
return model.NewUnAuthorizedError("You must be logged in to update a resource")
|
||||
}
|
||||
err = service.EditResource(uid, uint(id), ¶ms)
|
||||
err = service.UpdateResource(uid, uint(id), ¶ms)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user