Add still-running email preference

This commit is contained in:
Constantin Graf
2026-08-31 11:14:39 +02:00
committed by Gregor Vostrak
parent db9ca51fc4
commit 593372bae5
11 changed files with 114 additions and 2 deletions

View File

@@ -51,7 +51,8 @@ class TimeEntrySendStillRunningMailsCommand extends Command
])
->whereHas('user', function (Builder $query): void {
/** @var Builder<User> $query */
$query->where('is_placeholder', '=', false);
$query->where('is_placeholder', '=', false)
->where('send_time_entry_still_running_email', '=', true);
})
->orderBy('created_at', 'asc')
->chunk(500, function (Collection $timeEntries) use ($dryRun, &$sentMails): void {