Handle company logo not present failure

This commit is contained in:
David Bomba 2021-08-21 14:57:31 +10:00
parent 71b243bace
commit c3f05d5c8c

View File

@ -40,5 +40,13 @@ trait Uploadable
$entity->save();
}
}
else{
/* Catch Failures */
$settings = $entity->settings;
$settings->company_logo = '';
$entity->settings = $settings;
$entity->save();
}
}
}