Skip to content

Commit

Permalink
fixup! fix(caldav): automatically delete outdated scheduling objects
Browse files Browse the repository at this point in the history
  • Loading branch information
miaulalala committed May 28, 2024
1 parent 919e91e commit 1a53766
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/dav/lib/Migration/DeleteSchedulingObjects.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ public function run(IOutput $output): void {
$output->info('Cleaning up old scheduling events');
$time = $this->time->getTime() - (60 * 60);
$this->calDavBackend->deleteOutdatedSchedulingObjects($time, 50000);
if (!$this->jobList->has(DeleteOutdatedSchedulingObjects::class, [])) {
if (!$this->jobList->has(DeleteOutdatedSchedulingObjects::class, null)) {
$output->info('Adding background job to delete old scheduling objects');
$this->jobList->add(DeleteOutdatedSchedulingObjects::class, []);
$this->jobList->add(DeleteOutdatedSchedulingObjects::class, null);
}
}
}

0 comments on commit 1a53766

Please sign in to comment.