Merge pull request #1755 from burakcakirel/sample-data-notification-fix

Fix notification error when creating sample data
This commit is contained in:
Cüneyt Şentürk
2021-01-13 22:56:55 +03:00
committed by GitHub
3 changed files with 8 additions and 2 deletions

View File

@ -11,10 +11,14 @@ class SendDocumentPaymentNotification
* Handle the event.
*
* @param $event
* @return array
* @return void
*/
public function handle(Event $event)
{
if ($event->request['type'] !== 'income') {
return;
}
$document = $event->document;
$transaction = $document->transactions()->latest()->first();