From 63333a0cbfda9ce7bacde291b5f59f66d8b5f129 Mon Sep 17 00:00:00 2001 From: ArnabChatterjee20k Date: Fri, 8 May 2026 11:13:38 +0530 Subject: [PATCH] updated delete endpoint exceptions --- src/Appwrite/Platform/Modules/Presences/HTTP/Delete.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Appwrite/Platform/Modules/Presences/HTTP/Delete.php b/src/Appwrite/Platform/Modules/Presences/HTTP/Delete.php index f7b76cba07..a8b9671a53 100644 --- a/src/Appwrite/Platform/Modules/Presences/HTTP/Delete.php +++ b/src/Appwrite/Platform/Modules/Presences/HTTP/Delete.php @@ -69,9 +69,9 @@ class Delete extends PlatformAction try { $dbForProject->deleteDocument('presenceLogs', $presenceId); } catch (ConflictException) { - throw new Exception(Exception::DOCUMENT_DELETE_RESTRICTED); - } catch (RestrictedException) { throw new Exception(Exception::DOCUMENT_UPDATE_CONFLICT); + } catch (RestrictedException) { + throw new Exception(Exception::DOCUMENT_DELETE_RESTRICTED); } (new PresenceState())->purgeListCache($dbForProject);