remove deprecated test code

This commit is contained in:
SowinskiBraeden authored and GitHub committed 2022-06-10 10:45:56 -07:00
1 parent fdd489345d
commit e97f185e22
1 file changed
+4 -7
+4 -7
View File
@@ -145,7 +145,7 @@ func UpdateStudentGradeLevel(c *fiber.Ctx) error {
}, },
} }
result, updateErr := studentCollection.UpdateOne( _, updateErr := studentCollection.UpdateOne(
ctx, ctx,
bson.M{"schooldata.sid": data["sid"].(string)}, bson.M{"schooldata.sid": data["sid"].(string)},
update, update,
@@ -162,8 +162,7 @@ func UpdateStudentGradeLevel(c *fiber.Ctx) error {
return c.Status(fiber.StatusOK).JSON(fiber.Map{ return c.Status(fiber.StatusOK).JSON(fiber.Map{
"success": true, "success": true,
"message": "successfully updated student", "message": "successfully updated student"
"result": result,
}) })
} }
@@ -217,7 +216,7 @@ func UpdateStudentHomeroom(c *fiber.Ctx) error {
}, },
} }
result, updateErr := studentCollection.UpdateOne( _, updateErr := studentCollection.UpdateOne(
ctx, ctx,
bson.M{"schooldata.sid": data["sid"]}, bson.M{"schooldata.sid": data["sid"]},
update, update,
@@ -235,7 +234,6 @@ func UpdateStudentHomeroom(c *fiber.Ctx) error {
return c.Status(fiber.StatusOK).JSON(fiber.Map{ return c.Status(fiber.StatusOK).JSON(fiber.Map{
"success": true, "success": true,
"message": "successfully updated student", "message": "successfully updated student",
"result": result,
}) })
} }
@@ -491,7 +489,7 @@ func UpdateStudentLocker(c *fiber.Ctx) error {
}, },
} }
result, updateErr := studentCollection.UpdateOne( _, updateErr := studentCollection.UpdateOne(
ctx, ctx,
bson.M{"schooldata.sid": data["sid"]}, bson.M{"schooldata.sid": data["sid"]},
update, update,
@@ -509,7 +507,6 @@ func UpdateStudentLocker(c *fiber.Ctx) error {
return c.Status(fiber.StatusOK).JSON(fiber.Map{ return c.Status(fiber.StatusOK).JSON(fiber.Map{
"success": true, "success": true,
"message": "successfully updated student", "message": "successfully updated student",
"result": result,
}) })
} }