From 84e9c8243c744b8b4e54df47306bbcf1f032fdf3 Mon Sep 17 00:00:00 2001 From: fogelito Date: Mon, 5 Jan 2026 09:30:47 +0200 Subject: [PATCH] fix param order --- src/Appwrite/Platform/Workers/Deletes.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/Appwrite/Platform/Workers/Deletes.php b/src/Appwrite/Platform/Workers/Deletes.php index 5c36fa7f7a..dbe1882294 100644 --- a/src/Appwrite/Platform/Workers/Deletes.php +++ b/src/Appwrite/Platform/Workers/Deletes.php @@ -148,7 +148,7 @@ class Deletes extends Action break; case DELETE_TYPE_AUDIT: if (!$project->isEmpty()) { - $this->deleteAuditLogs($project, $auditRetention, $getAudit); + $this->deleteAuditLogs($project, $getAudit, $auditRetention); } break; case DELETE_TYPE_REALTIME: @@ -783,14 +783,13 @@ class Deletes extends Action } /** - * @param Database $dbForPlatform - * @param callable $getProjectDB - * @param string $auditRetention + * @param Document $project * @param callable $getAudit + * @param string $auditRetention * @return void * @throws Exception */ - private function deleteAuditLogs(Document $project, string $auditRetention, callable $getAudit): void + private function deleteAuditLogs(Document $project, callable $getAudit, string $auditRetention): void { $projectId = $project->getId(); /** @var Audit $audit */