Skip to content

Commit

Permalink
Update AccountService, fix delete status
Browse files Browse the repository at this point in the history
  • Loading branch information
dansup committed Nov 18, 2022
1 parent 5ce158a commit 8b7121f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Services/AccountService.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public static function get($id, $softFail = false)
$fractal = new Fractal\Manager();
$fractal->setSerializer(new ArraySerializer());
$profile = Profile::find($id);
if(!$profile) {
if(!$profile || $profile->status === 'delete') {
if($softFail) {
return null;
}
Expand Down

0 comments on commit 8b7121f

Please sign in to comment.