Skip to content

Commit 8b7121f

Browse files
committed
Update AccountService, fix delete status
1 parent 5ce158a commit 8b7121f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Services/AccountService.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public static function get($id, $softFail = false)
2323
$fractal = new Fractal\Manager();
2424
$fractal->setSerializer(new ArraySerializer());
2525
$profile = Profile::find($id);
26-
if(!$profile) {
26+
if(!$profile || $profile->status === 'delete') {
2727
if($softFail) {
2828
return null;
2929
}

0 commit comments

Comments
 (0)