mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
updated delete endpoint exceptions
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user