From 8537e1ce32ae12e7b45e62a6208c2cf2b72a7a1a Mon Sep 17 00:00:00 2001 From: shimon Date: Sun, 16 Jun 2024 16:43:09 +0300 Subject: [PATCH] Delete user update --- src/Appwrite/Platform/Workers/Deletes.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/Appwrite/Platform/Workers/Deletes.php b/src/Appwrite/Platform/Workers/Deletes.php index 2a44dc80ff..82b3096cef 100644 --- a/src/Appwrite/Platform/Workers/Deletes.php +++ b/src/Appwrite/Platform/Workers/Deletes.php @@ -597,14 +597,11 @@ class Deletes extends Action $team = $dbForProject->getDocument('teams', $teamId); if (!$team->isEmpty()) { $total = $document->getAttribute('total'); - var_dump('$total='.$total); // Delete the team if the user is the last membership if ($total === 1) { - var_dump('Deleting team'); $this->deleteById($team, $dbForProject); return; } - var_dump('decrease total'); $dbForProject->decreaseDocumentAttribute('teams', $teamId, 'total', 1, 0); } }