🐛 Fix cannot approve something

This commit is contained in:
2024-04-06 02:55:07 +08:00
parent bc688f61d3
commit ef55cbb32a
2 changed files with 4 additions and 3 deletions

View File

@ -87,6 +87,8 @@ func editFriendship(c *fiber.Ctx) error {
}
}
friendship.Status = models.FriendshipStatus(data.Status)
if friendship, err := services.EditFriend(friendship); err != nil {
return fiber.NewError(fiber.StatusBadRequest, err.Error())
} else {