Skip to content

Commit 337474a

Browse files
authored
fix: Removing supervisor from slot (#87)
1 parent bffc5c6 commit 337474a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lbplanner/services/slots/remove_slot_supervisor.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,11 @@ public static function remove_slot_supervisor(int $userid, int $slotid): void {
6868
);
6969

7070
// Check if current user is supervisor for this slot, throw error if not.
71-
slot_helper::assert_slot_supervisor($USER->id, $slotid);
71+
slot_helper::assert_slot_supervisor(intval($USER->id), $slotid);
7272

7373
$DB->delete_records(
7474
slot_helper::TABLE_SUPERVISORS,
75-
['id' => $userid, 'slotid' => $slotid]
75+
['userid' => $userid, 'slotid' => $slotid]
7676
);
7777
}
7878

0 commit comments

Comments
 (0)