Laravel Vapor - Get rid of an error from logs: Trying to get property 'owner' of non-object

This commit is contained in:
Dillon Ngo
2024-10-01 15:54:32 +08:00
parent cb8a61947a
commit 3d98495f89
+1 -5
View File
@@ -47,11 +47,7 @@ class UpdatePerfexCRMPrelude implements ShouldQueue
public function handle()
{
Log::info('packingList: ' . json_encode($this->packingList));
Log::info('packingList owner: ' . json_encode($this->packingList->owner));
Log::info('transaction: ' . json_encode($this->transaction));
Log::info('updatePerfexCRMObject get tasks: ' . json_encode($this->updatePerfexCRMObject->getTasks()));
Log::info('shouldCreateInvoice: ' . json_encode($this->shouldCreateInvoice));
Log::info('UpdatePerfexCRMPrelude packingList: ' . json_encode($this->packingList));
if(env('APP_ENV') !== 'production'){
return;