🐛 Fix publisher info did not marked used

This commit is contained in:
2025-03-10 23:58:25 +08:00
parent f06bc2d382
commit 76c78e0c01
2 changed files with 49 additions and 2 deletions

View File

@ -191,6 +191,7 @@ func editPublisher(c *fiber.Ctx) error {
return err
}
og := publisher
publisher.Name = data.Name
publisher.Nick = data.Nick
publisher.Description = data.Description
@ -200,7 +201,7 @@ func editPublisher(c *fiber.Ctx) error {
publisher.AccountID = data.AccountID
}
if publisher, err = services.EditPublisher(user, publisher); err != nil {
if publisher, err = services.EditPublisher(user, publisher, og); err != nil {
return fiber.NewError(fiber.StatusBadRequest, err.Error())
}