mirror of
https://github.com/appwrite/appwrite
synced 2026-05-06 06:48:22 +00:00
Update src/Appwrite/Migration/Version/V19.php
Co-authored-by: Steven Nguyen <1477010+stnguyen90@users.noreply.github.com>
This commit is contained in:
parent
438e7b66d1
commit
b9675f736b
1 changed files with 1 additions and 1 deletions
|
|
@ -707,7 +707,7 @@ class V19 extends Migration
|
|||
$commands = $this->getFunctionCommands($document);
|
||||
$document->setAttribute('commands', $document->getAttribute('commands', $commands));
|
||||
|
||||
if ($document->getAttribute('schedule') && !$document->getAttribute('scheduleId', null)) {
|
||||
if (empty($document->getAttribute('scheduleId', null))) {
|
||||
$schedule = $this->consoleDB->createDocument('schedules', new Document([
|
||||
'region' => App::getEnv('_APP_REGION', 'default'), // Todo replace with projects region
|
||||
'resourceType' => 'function',
|
||||
|
|
|
|||
Loading…
Reference in a new issue