fix UpdateTeacherName

This commit is contained in:
SowinskiBraeden committed 2022-06-07 13:10:33 -07:00
1 parent 7bd33decc9
commit f402b27222
1 file changed
+1 -1
+1 -1
View File
@@ -1639,7 +1639,7 @@ func UpdateTeacherName(c *fiber.Ctx) error {
} }
// Check id and names are included // Check id and names are included
if data["tid"] == "" || data["firstname"] == "" || data["middlename"] == "" || data["lastname"] == "" { if data["tid"] == "" || data["firstname"] == "" || data["lastname"] == "" {
cancel() cancel()
return c.Status(fiber.StatusBadRequest).JSON(fiber.Map{ return c.Status(fiber.StatusBadRequest).JSON(fiber.Map{
"success": false, "success": false,