hotfix/incorrect-variable-name

This commit is contained in:
SowinskiBraeden committed 2022-02-07 22:16:04 -08:00
1 parent ab7148b1ec
commit fe57b7b83e
1 file changed
+3 -3
+3 -3
View File
@@ -417,7 +417,7 @@ func UpdateStudentLocker(c *fiber.Ctx) error {
} }
// Check id and locker are included // Check id and locker are included
if data["sid"] == "" || data["lockerNumber"] == "" { if data["sid"] == "" || data["lockernumber"] == "" {
cancel() cancel()
return c.Status(fiber.StatusBadRequest).JSON(fiber.Map{ return c.Status(fiber.StatusBadRequest).JSON(fiber.Map{
"success": false, "success": false,
@@ -439,8 +439,8 @@ func UpdateStudentLocker(c *fiber.Ctx) error {
update_time, _ := time.Parse(time.RFC3339, time.Now().Format(time.RFC3339)) update_time, _ := time.Parse(time.RFC3339, time.Now().Format(time.RFC3339))
update := bson.M{ update := bson.M{
"$set": bson.M{ "$set": bson.M{
"schooldata.studentlocker": locker.ID, "schooldata.locker": locker.ID,
"updated_at": update_time, "updated_at": update_time,
}, },
} }