⬆️ Upgrade the Passport notify module

This commit is contained in:
2024-06-08 12:33:10 +08:00
parent 850efcdc8b
commit fc493e82c3
5 changed files with 63 additions and 35 deletions

View File

@@ -236,7 +236,7 @@ func reactPost(c *fiber.Ctx) error {
reaction.PostID = &res.ID
}
if positive, reaction, err := services.ReactPost(reaction); err != nil {
if positive, reaction, err := services.ReactPost(user, reaction); err != nil {
return fiber.NewError(fiber.StatusBadRequest, err.Error())
} else {
return c.Status(lo.Ternary(positive, fiber.StatusCreated, fiber.StatusNoContent)).JSON(reaction)