fix: make sure approved invites are not deleted daily

even though people would have time to use approved invites (24 hrs at least), it would be better to delete them when they expire instead.

Signed-off-by: Miguel Nogueira <me@nogueira.codes>
This commit is contained in:
2025-08-10 11:01:24 +01:00
parent 627c619abf
commit d48b35e845
4 changed files with 37 additions and 13 deletions

View File

@@ -36,5 +36,10 @@ Schedule::command('votes:evaluate')->daily();
Schedule::job(new ProcessDueSuspensions())->daily();
Schedule::job(new ProcessExpiredAbsences())->daily();
Schedule::job(new InviteLifecycleCleanup())->daily();
Schedule::job(new ExpiredInviteCleanup())->daily();
// Schedule::job(new InviteLifecycleCleanup())->cron("0 */12 * * *");
// Schedule::job(new ExpiredInviteCleanup())->daily();
// debug
Schedule::job(new InviteLifecycleCleanup())->everyFiveMinutes();
Schedule::job(new ExpiredInviteCleanup())->everyMinute();