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);