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
{
try {
$this->publishOnNostr($bitcoinEvent, $this->getText('BitcoinEvent'));
$this->publishOnNostr($bitcoinEvent, $this->getText($bitcoinEvent));
} catch (Exception $e) {
Log::error($e->getMessage());
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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