refactor: refactor status

This commit is contained in:
clz 2023-06-10 15:19:14 +08:00
parent 96b8d20f7b
commit 7e0976baac

View File

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