From 36eabfa2ddaf492fd3ac7fb033bc555ba40b49b7 Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Sun, 11 Feb 2024 09:45:36 +0000 Subject: [PATCH] fix check twice --- app/controllers/api/account.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/app/controllers/api/account.php b/app/controllers/api/account.php index a687dbea08..2299b3eea1 100644 --- a/app/controllers/api/account.php +++ b/app/controllers/api/account.php @@ -3054,10 +3054,6 @@ App::delete('/v1/account') } } - if ($user->isEmpty()) { - throw new Exception(Exception::USER_NOT_FOUND); - } - $dbForProject->deleteDocument('users', $user->getId()); $queueForDeletes