fix: add return content

This commit is contained in:
clz 2023-06-03 19:59:51 +08:00
parent e7b0bb04b3
commit c82a369d65

View File

@ -102,7 +102,10 @@ func (h *LabelHandler) deleteLabel(c *fiber.Ctx) error {
})
}
return c.SendStatus(fiber.StatusNoContent)
return c.Status(fiber.StatusNoContent).JSON(&fiber.Map{
"status": "success",
"message": "Label has been deleted successfully",
})
}
func (h *LabelHandler) updateLabel(c *fiber.Ctx) error {