From 8b7121f9fbcb65f77f5b7a80370873b0d60b5804 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Thu, 17 Nov 2022 19:51:48 -0700 Subject: [PATCH] Update AccountService, fix delete status --- app/Services/AccountService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Services/AccountService.php b/app/Services/AccountService.php index 13cccffa..abdc25ad 100644 --- a/app/Services/AccountService.php +++ b/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; }