mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
getCollectionId
This commit is contained in:
@@ -24,6 +24,7 @@ abstract class ScheduleBase extends Action
|
||||
|
||||
abstract public static function getName(): string;
|
||||
abstract public static function getSupportedResource(): string;
|
||||
abstract public static function getCollectionId(): string;
|
||||
abstract protected function enqueueResources(Group $pools, Database $dbForConsole, callable $getProjectDB):void;
|
||||
|
||||
public function __construct()
|
||||
|
||||
@@ -26,6 +26,11 @@ class ScheduleFunctions extends ScheduleBase
|
||||
return 'function';
|
||||
}
|
||||
|
||||
public static function getCollectionId(): string
|
||||
{
|
||||
return 'functions';
|
||||
}
|
||||
|
||||
protected function enqueueResources(Group $pools, Database $dbForConsole, callable $getProjectDB): void
|
||||
{
|
||||
$timerStart = \microtime(true);
|
||||
|
||||
@@ -21,6 +21,11 @@ class ScheduleMessages extends ScheduleBase
|
||||
return 'message';
|
||||
}
|
||||
|
||||
public static function getCollectionId(): string
|
||||
{
|
||||
return 'messages';
|
||||
}
|
||||
|
||||
protected function enqueueResources(Group $pools, Database $dbForConsole, callable $getProjectDB): void
|
||||
{
|
||||
foreach ($this->schedules as $schedule) {
|
||||
|
||||
Reference in New Issue
Block a user