mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +00:00
Enhance presence deletion by adding payload to event queue after document removal
This commit is contained in:
1 parent
cd6a6956d6
commit
3f06b5cd1a
1 file changed
+4
-1
@@ -65,7 +65,10 @@ class Delete extends Base
|
||||
}
|
||||
|
||||
$dbForProject->deleteDocument('presenceLogs', $presenceId);
|
||||
$queueForEvents->setParam('presenceId', $presence->getId());
|
||||
|
||||
$queueForEvents
|
||||
->setParam('presenceId', $presence->getId())
|
||||
->setPayload($response->output($presence, Response::MODEL_PRESENCE));
|
||||
|
||||
$response->noContent();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user