From 83ffc41d92ea438bec099bfe6dbeb743c7826092 Mon Sep 17 00:00:00 2001 From: loks0n <22452787+loks0n@users.noreply.github.com> Date: Mon, 17 Jun 2024 13:46:18 +0100 Subject: [PATCH] chore: fmt --- src/Appwrite/Event/Func.php | 4 ++-- src/Appwrite/Platform/Services/Tasks.php | 2 +- src/Appwrite/Platform/Tasks/ScheduleExecutions.php | 5 ++--- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/Appwrite/Event/Func.php b/src/Appwrite/Event/Func.php index 67c28575bd..451df2b6c1 100644 --- a/src/Appwrite/Event/Func.php +++ b/src/Appwrite/Event/Func.php @@ -52,7 +52,7 @@ class Func extends Event /** * Sets function id for the function event. - * + * * @param string $functionId */ public function setFunctionId(string $functionId): self @@ -64,7 +64,7 @@ class Func extends Event /** * Returns set function id for the function event. - * + * * @return string|null */ public function getFunctionId(): ?string diff --git a/src/Appwrite/Platform/Services/Tasks.php b/src/Appwrite/Platform/Services/Tasks.php index b7b333b2c6..999270d2dc 100644 --- a/src/Appwrite/Platform/Services/Tasks.php +++ b/src/Appwrite/Platform/Services/Tasks.php @@ -8,8 +8,8 @@ use Appwrite\Platform\Tasks\Maintenance; use Appwrite\Platform\Tasks\Migrate; use Appwrite\Platform\Tasks\QueueCount; use Appwrite\Platform\Tasks\QueueRetry; -use Appwrite\Platform\Tasks\ScheduleFunctions; use Appwrite\Platform\Tasks\ScheduleExecutions; +use Appwrite\Platform\Tasks\ScheduleFunctions; use Appwrite\Platform\Tasks\ScheduleMessages; use Appwrite\Platform\Tasks\SDKs; use Appwrite\Platform\Tasks\Specs; diff --git a/src/Appwrite/Platform/Tasks/ScheduleExecutions.php b/src/Appwrite/Platform/Tasks/ScheduleExecutions.php index 01dde1e88b..14d5632000 100644 --- a/src/Appwrite/Platform/Tasks/ScheduleExecutions.php +++ b/src/Appwrite/Platform/Tasks/ScheduleExecutions.php @@ -4,7 +4,6 @@ namespace Appwrite\Platform\Tasks; use Appwrite\Event\Func; use Cron\CronExpression; -use Utopia\CLI\Console; use Utopia\Database\Database; use Utopia\Pools\Group; @@ -41,9 +40,9 @@ class ScheduleExecutions extends ScheduleBase \go(function () use ($schedule, $pools, $dbForConsole) { $queue = $pools->get('queue')->pop(); $connection = $queue->getResource(); - + $queueForFunctions = new Func($connection); - + $queueForFunctions ->setType('schedule') ->setFunctionId($schedule['resource']['functionId'])