Update AccountService, fix delete status

pull/3788/head
Daniel Supernault 3 years ago
parent 5ce158a272
commit 8b7121f9fb
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7

@ -23,7 +23,7 @@ class AccountService
$fractal = new Fractal\Manager(); $fractal = new Fractal\Manager();
$fractal->setSerializer(new ArraySerializer()); $fractal->setSerializer(new ArraySerializer());
$profile = Profile::find($id); $profile = Profile::find($id);
if(!$profile) { if(!$profile || $profile->status === 'delete') {
if($softFail) { if($softFail) {
return null; return null;
} }

Loading…
Cancel
Save