hotfix/incorrect-variable-name
This commit is contained in:
1 parent
ab7148b1ec
commit
fe57b7b83e
1 file changed
+2
-2
@@ -417,7 +417,7 @@ func UpdateStudentLocker(c *fiber.Ctx) error {
|
||||
}
|
||||
|
||||
// Check id and locker are included
|
||||
if data["sid"] == "" || data["lockerNumber"] == "" {
|
||||
if data["sid"] == "" || data["lockernumber"] == "" {
|
||||
cancel()
|
||||
return c.Status(fiber.StatusBadRequest).JSON(fiber.Map{
|
||||
"success": false,
|
||||
@@ -439,7 +439,7 @@ func UpdateStudentLocker(c *fiber.Ctx) error {
|
||||
update_time, _ := time.Parse(time.RFC3339, time.Now().Format(time.RFC3339))
|
||||
update := bson.M{
|
||||
"$set": bson.M{
|
||||
"schooldata.studentlocker": locker.ID,
|
||||
"schooldata.locker": locker.ID,
|
||||
"updated_at": update_time,
|
||||
},
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user