From f402b272222765396da7315a18ef045bd51f5d8c Mon Sep 17 00:00:00 2001 From: Braeden Sowinski Date: Tue, 7 Jun 2022 13:10:33 -0700 Subject: [PATCH] fix UpdateTeacherName --- controllers/updateController.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/updateController.go b/controllers/updateController.go index 77d4832..eacaea2 100644 --- a/controllers/updateController.go +++ b/controllers/updateController.go @@ -1639,7 +1639,7 @@ func UpdateTeacherName(c *fiber.Ctx) error { } // Check id and names are included - if data["tid"] == "" || data["firstname"] == "" || data["middlename"] == "" || data["lastname"] == "" { + if data["tid"] == "" || data["firstname"] == "" || data["lastname"] == "" { cancel() return c.Status(fiber.StatusBadRequest).JSON(fiber.Map{ "success": false,