mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +00:00
OPR v5 + Flutter starter
This commit is contained in:
1 parent
0170b4c9e8
commit
994e2faa42
16 files changed
+80
-38
No files matched your search
@@ -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