fix db queries

This commit is contained in:
SowinskiBraeden committed 2023-01-09 09:31:57 -08:00
1 parent 2914859505
commit fede9ff793
8 files changed
+61 -61

No files matched your search

+2 -2
View File
@@ -378,7 +378,7 @@ func RemoveStudentsDisabled(c *fiber.Ctx) error {
result, updateErr := StudentCollection.UpdateOne(
ctx,
bson.M{"School.sid": data["sid"]},
bson.M{"school.sid": data["sid"]},
update,
)
if updateErr != nil {
@@ -440,7 +440,7 @@ func RemoveTeachersDisabled(c *fiber.Ctx) error {
result, updateErr := TeacherCollection.UpdateOne(
ctx,
bson.M{"School.tid": data["tid"]},
bson.M{"school.tid": data["tid"]},
update,
)
if updateErr != nil {