浏览代码

Update AccountService, fix delete status

Daniel Supernault 2 年之前
父节点
当前提交
8b7121f9fb
共有 1 个文件被更改,包括 1 次插入1 次删除
  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;
 				}