diff --git a/app/Traits/GenerateMigrationResources.php b/app/Traits/GenerateMigrationResources.php index ee13478bd6..fbd98d267c 100644 --- a/app/Traits/GenerateMigrationResources.php +++ b/app/Traits/GenerateMigrationResources.php @@ -880,7 +880,7 @@ info("get company"); 'key' => $invitation->invitation_key, 'transaction_reference' => $invitation->transaction_reference, 'message_id' => $invitation->message_id, - 'email_error' => $invitation->email_error, + 'email_error' => $invitation->email_error ?: '', 'signature_base64' => $invitation->signature_base64, 'signature_date' => $invitation->signature_date, 'sent_date' => $invitation->sent_date, @@ -890,7 +890,6 @@ info("get company"); 'updated_at' => $invitation->updated_at ? Carbon::parse($invitation->updated_at)->toDateString() : null, 'deleted_at' => $invitation->deleted_at ? Carbon::parse($invitation->deleted_at)->toDateString() : null, 'email_status' => '', - 'email_error' => '', ]; }