mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +00:00
updated delete endpoint exceptions
This commit is contained in:
1 parent
0048d3f911
commit
63333a0cbf
1 file changed
+2
-2
@@ -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