Browse Source

Update AccountService, fix delete status

Daniel Supernault 2 years ago
parent
commit
8b7121f9fb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Services/AccountService.php

+ 1 - 1
app/Services/AccountService.php

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