mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-app.git
synced 2025-12-14 12:06:46 +00:00
⚙️ Update PublishUnpublishedItems to run hourly and only publish MeetupEvents starting within the next 7 days.
This commit is contained in:
@@ -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,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user