feat/queue-messages (#19)

Co-authored-by: jon brookes <marshyon@gmail.com>
Reviewed-on: https://codeberg.org/headshed/share-lt/pulls/19
This commit is contained in:
Jon Brookes 2026-02-09 18:09:35 +01:00
parent 1a22fd156d
commit 74bc17d019
9 changed files with 88 additions and 8 deletions

View file

@ -35,9 +35,14 @@ class ProcessEntryUpdate implements ShouldQueue
public function handle(): void
{
$subject = env('NATS_SUBJECT', 'entry_update');
$appUrl = env('APP_URL', 'http://localhost');
$incoming = [
'id' => $this->entryId,
'action' => $this->action,
'subject' => $subject,
'app_url' => $appUrl,
];
$jsonData = json_encode($incoming, JSON_THROW_ON_ERROR);