shorter data names

This commit is contained in:
SowinskiBraeden committed 2023-01-08 00:31:44 -08:00
1 parent ce964edcd4
commit 2914859505
7 files changed
+64 -64

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{"schooldata.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{"schooldata.tid": data["tid"]},
bson.M{"School.tid": data["tid"]},
update,
)
if updateErr != nil {