Skip to content

Commit 66c47d7

Browse files
committed
fix(Assignments): Minor fixes to get things to run
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
1 parent 046cdac commit 66c47d7

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

lib/Service/AssignmentsService.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ public function createAssignment(?string $userId, string $prompt, int $startsAt,
7878
public function runDueAssignmentsForUser(?string $userId) {
7979
try {
8080
foreach ($this->assignmentMapper->findDueAssignmentsForUser($userId) as $assignment) {
81+
if ($assignment === null) {
82+
continue;
83+
}
8184
$this->scheduleAssignmentRun($userId, $assignment->getId());
8285
}
8386
} catch (Exception $e) {

0 commit comments

Comments
 (0)