fixes for purge client

This commit is contained in:
David Bomba 2022-10-10 14:26:53 +11:00
parent 83e092548f
commit 48e21e9495

View File

@ -640,7 +640,14 @@ class ClientController extends BaseController
{
//delete all documents
$client->documents->each(function ($document) {
Storage::disk(config('filesystems.default'))->delete($document->url);
try{
Storage::disk(config('filesystems.default'))->delete($document->url);
}
catch(\Exception $e){
nlog($e->getMessage());
}
});
//force delete the client