mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
OPR v5 + Flutter starter
This commit is contained in:
@@ -169,7 +169,7 @@ class Create extends Base
|
||||
'commands' => $commands,
|
||||
'scopes' => $scopes,
|
||||
'search' => implode(' ', [$functionId, $name, $runtime]),
|
||||
'version' => 'v4',
|
||||
'version' => 'v5',
|
||||
'installationId' => $installation->getId(),
|
||||
'installationInternalId' => $installation->getInternalId(),
|
||||
'providerRepositoryId' => $providerRepositoryId,
|
||||
|
||||
@@ -1102,7 +1102,7 @@ class Builds extends Action
|
||||
{
|
||||
return match ($resource->getCollection()) {
|
||||
'functions' => $resource->getAttribute('version', 'v2'),
|
||||
'sites' => 'v4',
|
||||
'sites' => 'v5',
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -119,7 +119,7 @@ class Func extends Model
|
||||
->addRule('version', [
|
||||
'type' => self::TYPE_STRING,
|
||||
'description' => 'Version of Open Runtimes used for the function.',
|
||||
'default' => 'v4',
|
||||
'default' => 'v5',
|
||||
'example' => 'v2',
|
||||
])
|
||||
->addRule('installationId', [
|
||||
|
||||
@@ -74,8 +74,8 @@ class Executor
|
||||
$route = "/runtimes";
|
||||
|
||||
// Remove after migration
|
||||
if ($version == 'v3') {
|
||||
$version = 'v4';
|
||||
if ($version == 'v3' || $version === 'v4') {
|
||||
$version = 'v5';
|
||||
}
|
||||
|
||||
$params = [
|
||||
@@ -201,8 +201,8 @@ class Executor
|
||||
$route = '/runtimes/' . $runtimeId . '/executions';
|
||||
|
||||
// Remove after migration
|
||||
if ($version == 'v3') {
|
||||
$version = 'v4';
|
||||
if ($version == 'v3' || $version === 'v4') {
|
||||
$version = 'v5';
|
||||
}
|
||||
|
||||
$params = [
|
||||
|
||||
Reference in New Issue
Block a user