nostr events schedule

This commit is contained in:
HolgerHatGarKeineNode
2023-02-24 13:41:50 +01:00
parent 6d35cb00ea
commit 5baafcf5b2
2 changed files with 2 additions and 2 deletions

View File

@@ -35,6 +35,7 @@ class PublishUnpublishedItems extends Command
->when($modelName === 'CourseEvent', fn($q) => $q->where('from', '>', now())) ->when($modelName === 'CourseEvent', fn($q) => $q->where('from', '>', now()))
->when($modelName === 'MeetupEvent', fn($q) => $q->where('start', '>', now())) ->when($modelName === 'MeetupEvent', fn($q) => $q->where('start', '>', now()))
->when($modelName === 'LibraryItem', fn($q) => $q->where('type', '<>', 'markdown_article')) ->when($modelName === 'LibraryItem', fn($q) => $q->where('type', '<>', 'markdown_article'))
->orderByDesc('created_at')
->first(); ->first();
$this->publishOnNostr($model, $this->getText($model)); $this->publishOnNostr($model, $this->getText($model));
} }

View File

@@ -26,11 +26,10 @@ class EventServiceProvider extends ServiceProvider
{ {
/** /**
* The event to listener mappings for the application. * The event to listener mappings for the application.
*
* @var array<class-string, array<int, class-string>> * @var array<class-string, array<int, class-string>>
*/ */
protected $listen = [ protected $listen = [
Login::class => [ Login::class => [
AddLoginReputation::class, AddLoginReputation::class,
], ],
Registered::class => [ Registered::class => [