nostr events schedule

This commit is contained in:
HolgerHatGarKeineNode
2023-02-24 13:51:17 +01:00
parent 5baafcf5b2
commit d6d6560409
7 changed files with 7 additions and 7 deletions

View File

@@ -17,7 +17,7 @@ class BitcoinEventObserver
public function created(BitcoinEvent $bitcoinEvent): void public function created(BitcoinEvent $bitcoinEvent): void
{ {
try { try {
$this->publishOnNostr($bitcoinEvent, $this->getText('BitcoinEvent')); $this->publishOnNostr($bitcoinEvent, $this->getText($bitcoinEvent));
} catch (Exception $e) { } catch (Exception $e) {
Log::error($e->getMessage()); Log::error($e->getMessage());
} }

View File

@@ -17,7 +17,7 @@ class CourseEventObserver
public function created(CourseEvent $courseEvent): void public function created(CourseEvent $courseEvent): void
{ {
try { try {
$this->publishOnNostr($courseEvent, $this->getText('CourseEvent')); $this->publishOnNostr($courseEvent, $this->getText($courseEvent));
} catch (Exception $e) { } catch (Exception $e) {
Log::error($e->getMessage()); Log::error($e->getMessage());
} }

View File

@@ -17,7 +17,7 @@ class CourseObserver
public function created(Course $course): void public function created(Course $course): void
{ {
try { try {
$this->publishOnNostr($course, $this->getText('Course')); $this->publishOnNostr($course, $this->getText($course));
} catch (Exception $e) { } catch (Exception $e) {
Log::error($e->getMessage()); Log::error($e->getMessage());
} }

View File

@@ -24,7 +24,7 @@ class LibraryItemObserver
if ($libraryItem->whereDoesntHave('libraries', if ($libraryItem->whereDoesntHave('libraries',
fn($query) => $query->where('libraries.is_public', false)) fn($query) => $query->where('libraries.is_public', false))
->exists()) { ->exists()) {
$this->publishOnNostr($libraryItem, $this->getText('LibraryItem')); $this->publishOnNostr($libraryItem, $this->getText($libraryItem));
} }
} }
} catch (Exception $e) { } catch (Exception $e) {

View File

@@ -17,7 +17,7 @@ class MeetupEventObserver
public function created(MeetupEvent $meetupEvent): void public function created(MeetupEvent $meetupEvent): void
{ {
try { try {
$this->publishOnNostr($meetupEvent, $this->getText('MeetupEvent')); $this->publishOnNostr($meetupEvent, $this->getText($meetupEvent));
} catch (Exception $e) { } catch (Exception $e) {
Log::error($e->getMessage()); Log::error($e->getMessage());
} }

View File

@@ -17,7 +17,7 @@ class MeetupObserver
public function created(Meetup $meetup): void public function created(Meetup $meetup): void
{ {
try { try {
$this->publishOnNostr($meetup, $this->getText('Meetup')); $this->publishOnNostr($meetup, $this->getText($meetup));
} catch (Exception $e) { } catch (Exception $e) {
Log::error($e->getMessage()); Log::error($e->getMessage());
} }

View File

@@ -17,7 +17,7 @@ class OrangePillObserver
public function created(OrangePill $orangePill): void public function created(OrangePill $orangePill): void
{ {
try { try {
$this->publishOnNostr($orangePill, $this->getText('OrangePill')); $this->publishOnNostr($orangePill, $this->getText($orangePill));
} catch (Exception $e) { } catch (Exception $e) {
Log::error($e->getMessage()); Log::error($e->getMessage());
} }