1
0
Fork 0
mirror of synced 2024-09-30 17:26:48 +13:00

Merge pull request #3443 from appwrite/fix-audit-deletes

Fix: Audit deletes
This commit is contained in:
Torsten Dittmann 2022-06-28 11:27:14 +02:00 committed by GitHub
commit 8de76205f9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -79,8 +79,8 @@ class DeletesV1 extends Worker
break;
case DELETE_TYPE_AUDIT:
$timestamp = $payload['timestamp'] ?? 0;
$document = new Document($payload['document'] ?? []);
$timestamp = $this->args['timestamp'] ?? 0;
$document = new Document($this->args['document'] ?? []);
if (!empty($timestamp)) {
$this->deleteAuditLogs($this->args['timestamp']);