snipe / snipe-it

A free open source IT asset/license management system
https://snipeitapp.com
GNU Affero General Public License v3.0
11.19k stars 3.2k forks source link

Unable to send acceptance reminders #15874

Open filipc opened 4 days ago

filipc commented 4 days ago

Debug mode

Describe the bug

When calling snipeit:acceptance-reminder command email notifications are not being send


 ErrorException

  Attempt to read property "assignedTo" on null

  at app/Notifications/UnacceptedAssetReminderNotification.php:24
     20▕      */
     21▕     public function __construct($checkout_info, $count)
     22▕     {
     23▕         $this->count = $count;
  ➜  24▕         $this->target = $checkout_info['acceptance']->assignedTo;
     25▕         $this->acceptance = $checkout_info['acceptance'];
     26▕
     27▕     }
     28▕

Reproduction steps

run php artisan snipeit:acceptance-reminder -vvvv

Expected behavior

The emails should be sent.

Screenshots

No response

Snipe-IT Version

7.0.14

Operating System

Docker

Web Server

Nginx

PHP Version

8.1.2

Operating System

No response

Browser

No response

Version

No response

Device

No response

Operating System

No response

Browser

No response

Version

No response

Error messages

No response

Additional context

No response

welcome[bot] commented 4 days ago

👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.