⚙️ Update PublishUnpublishedItems to run hourly and only publish MeetupEvents starting within the next 7 days.

This commit is contained in:
HolgerHatGarKeineNode
2025-12-09 23:02:43 +01:00
parent d263eaf92d
commit c6c524a876
2 changed files with 2 additions and 1 deletions

View File

@@ -53,6 +53,7 @@ class PublishUnpublishedItems extends Command
'MeetupEvent' => $modelClass::with('meetup.city.country')
->whereNull('nostr_status')
->where('start', '>', now())
->where('start', '<=', now()->addDays(7))
->orderByDesc('created_at'),
default => null,
};

View File

@@ -7,7 +7,7 @@ Schedule::command(CleanupLoginKeys::class)->everyFifteenMinutes();
Schedule::command(PublishUnpublishedItems::class, [
'--model' => 'MeetupEvent',
])->dailyAt('17:00');
])->hourly();
Schedule::command(PublishUnpublishedItems::class, [
'--model' => 'Meetup',