Comments on #167

This commit is contained in:
2025-12-05 09:53:28 +01:00
parent 8315383958
commit 25034ee2f3
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -18,6 +18,9 @@ class ScheduleListener
*/
public function handle($event)
{
// TODO: this check is also done, when registering the listener EventServiceProvider.php
// it can probably be removed here safely which would spare a database call on each request
// only run when internal scheduling is enabled (defensive)
$method = Setting::where('key', 'app.schedule_method')->value('value') ?? 'internal';
if ($method !== 'internal') {
+1 -1
View File
@@ -29,7 +29,7 @@ public function boot(): void
}
}
// TODO: read where to put these
// TODO: read where to put these or ask in the forums
// it seems to work here, but where is the apropriate place?
// Kernel::schedule did not work
Schedule::command('caldav:sync')