Update AccountService, fix delete status

pull/3788/head
Daniel Supernault 2022-11-17 19:51:48 -07:00
rodzic 5ce158a272
commit 8b7121f9fb
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 0DEF1C662C9033F7
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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;
}