mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-12-12 01:42:32 +00:00
Fix #11281 and some other stuff.
This commit is contained in:
@@ -53,8 +53,12 @@ class WebhookEventHandler
|
||||
)->splice(0, 5)
|
||||
;
|
||||
Log::debug(sprintf('Found %d webhook message(s) ready to be send.', $messages->count()));
|
||||
/** @var WebhookMessage $message */
|
||||
foreach ($messages as $message) {
|
||||
if (false === $message->sent) {
|
||||
// set it to "sent" right away!
|
||||
$message->sent = true;
|
||||
$message->save();
|
||||
Log::debug(sprintf('Send message #%d', $message->id));
|
||||
SendWebhookMessage::dispatch($message)->afterResponse();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user