PR review changes

This commit is contained in:
Matej Bačo 2022-12-14 10:44:46 +01:00
parent 11b3abebd1
commit 3d07600a48
4 changed files with 9 additions and 9 deletions

View file

@ -1,3 +0,0 @@
#!/bin/sh
php /usr/src/code/app/cli.php create-missing-schedules $@

View file

@ -0,0 +1,3 @@
#!/bin/sh
php /usr/src/code/app/cli.php patch-create-missing-schedules $@

View file

@ -8,7 +8,7 @@ use Appwrite\Platform\Tasks\Install;
use Appwrite\Platform\Tasks\Maintenance;
use Appwrite\Platform\Tasks\Migrate;
use Appwrite\Platform\Tasks\Schedule;
use Appwrite\Platform\Tasks\CreateMissingSchedules;
use Appwrite\Platform\Tasks\PatchCreateMissingSchedules;
use Appwrite\Platform\Tasks\SDKs;
use Appwrite\Platform\Tasks\Specs;
use Appwrite\Platform\Tasks\SSL;
@ -30,7 +30,7 @@ class Tasks extends Service
->addAction(Doctor::getName(), new Doctor())
->addAction(Install::getName(), new Install())
->addAction(Maintenance::getName(), new Maintenance())
->addAction(CreateMissingSchedules::getName(), new CreateMissingSchedules())
->addAction(PatchCreateMissingSchedules::getName(), new PatchCreateMissingSchedules())
->addAction(Schedule::getName(), new Schedule())
->addAction(Migrate::getName(), new Migrate())
->addAction(SDKs::getName(), new SDKs())

View file

@ -11,11 +11,11 @@ use Utopia\Database\Database;
use Utopia\Database\ID;
use Utopia\Database\Validator\Authorization;
class CreateMissingSchedules extends Action
class PatchCreateMissingSchedules extends Action
{
public static function getName(): string
{
return 'create-missing-schedules';
return 'patch-create-missing-schedules';
}
public function __construct()
@ -35,8 +35,8 @@ class CreateMissingSchedules extends Action
Authorization::disable();
Authorization::setDefaultStatus(false);
Console::title('CreateMissingSchedules V1');
Console::success(APP_NAME . ' CreateMissingSchedules v1 has started');
Console::title('PatchCreateMissingSchedules V1');
Console::success(APP_NAME . ' PatchCreateMissingSchedules v1 has started');
$limit = 100;
$projectCursor = null;