From 73f3f0aee64113159ffd4b2d0a1e0f807131da70 Mon Sep 17 00:00:00 2001 From: shimon Date: Tue, 30 May 2023 16:19:44 +0300 Subject: [PATCH] Messaging --- src/Appwrite/Platform/Workers/Audits.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Appwrite/Platform/Workers/Audits.php b/src/Appwrite/Platform/Workers/Audits.php index cbcb4a2c40..84a15936c5 100644 --- a/src/Appwrite/Platform/Workers/Audits.php +++ b/src/Appwrite/Platform/Workers/Audits.php @@ -12,8 +12,6 @@ use Utopia\Queue\Message; class Audits extends Action { - protected static array $init; - public static function getName(): string { return 'audits'; @@ -25,10 +23,12 @@ class Audits extends Action ->desc('Audits worker') ->inject('message') ->inject('dbForProject') - ->callback(fn ($message, $dbForProject) => $this->action($message, $dbForProject)); + ->inject('polls') + ->callback(fn ($message, $dbForProject, $pools) => $this->action($message, $dbForProject, $pools)); } + public function action(Message $message, $dbForProject): void {