1
0
Fork 0
mirror of synced 2024-07-06 23:21:05 +12:00

chore: fmt

This commit is contained in:
loks0n 2024-06-17 13:46:18 +01:00
parent 2f0f7bf9c7
commit 83ffc41d92
3 changed files with 5 additions and 6 deletions

View file

@ -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

View file

@ -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;

View file

@ -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'])