diff --git a/app/Console/Commands/Nostr/PublishUnpublishedItems.php b/app/Console/Commands/Nostr/PublishUnpublishedItems.php index 46a6943..d80df79 100644 --- a/app/Console/Commands/Nostr/PublishUnpublishedItems.php +++ b/app/Console/Commands/Nostr/PublishUnpublishedItems.php @@ -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, }; diff --git a/routes/console.php b/routes/console.php index faa9c7a..50e7617 100644 --- a/routes/console.php +++ b/routes/console.php @@ -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',