edited terenaries on notifs

This commit is contained in:
Godfrey M 2024-08-01 11:13:20 -07:00
parent 854903805b
commit ae4f278df1
2 changed files with 2 additions and 2 deletions

View file

@ -162,7 +162,7 @@ class CheckinAssetNotification extends Notification
$message = (new MailMessage)->markdown('notifications.markdown.checkin-asset', $message = (new MailMessage)->markdown('notifications.markdown.checkin-asset',
[ [
'item' => $this->item, 'item' => $this->item,
'status' => $this->item->assetstatus->name ?: '', 'status' => $this->item->assetstatus?->name,
'admin' => $this->admin, 'admin' => $this->admin,
'note' => $this->note, 'note' => $this->note,
'target' => $this->target, 'target' => $this->target,

View file

@ -209,7 +209,7 @@ public function toGoogleChat()
[ [
'item' => $this->item, 'item' => $this->item,
'admin' => $this->admin, 'admin' => $this->admin,
'status' => $this->item->assetstatus->name ?: '', 'status' => $this->item->assetstatus?->name,
'note' => $this->note, 'note' => $this->note,
'target' => $this->target, 'target' => $this->target,
'fields' => $fields, 'fields' => $fields,