mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
fix: tests
This commit is contained in:
@@ -1749,7 +1749,7 @@ App::post('/v1/projects/:projectId/platforms')
|
||||
->param('scheme', '', new Text(256), 'Platform client scheme. Max length: 256 chars.', true)
|
||||
->inject('response')
|
||||
->inject('dbForPlatform')
|
||||
->action(function (string $projectId, string $type, string $name, string $key, string $store, string $hostname, Response $response, Database $dbForPlatform) {
|
||||
->action(function (string $projectId, string $type, string $name, string $key, string $store, string $hostname, string $scheme, Response $response, Database $dbForPlatform) {
|
||||
$project = $dbForPlatform->getDocument('projects', $projectId);
|
||||
|
||||
if ($project->isEmpty()) {
|
||||
|
||||
+3
-3
@@ -1225,12 +1225,12 @@ App::setResource('schemes', function (array $platforms) {
|
||||
|
||||
foreach ($platforms as $platform) {
|
||||
if (!empty($platform['scheme']) && in_array($platform['type'], [
|
||||
Origin::CLIENT_TYPE_IOS,
|
||||
Origin::CLIENT_TYPE_APPLE_IOS,
|
||||
Origin::CLIENT_TYPE_ANDROID,
|
||||
Origin::CLIENT_TYPE_FLUTTER_IOS,
|
||||
Origin::CLIENT_TYPE_FLUTTER_ANDROID,
|
||||
Origin::CLIENT_TYPE_FLUTTER_REACT_NATIVE_IOS,
|
||||
Origin::CLIENT_TYPE_FLUTTER_REACT_NATIVE_ANDROID
|
||||
Origin::CLIENT_TYPE_REACT_NATIVE_IOS,
|
||||
Origin::CLIENT_TYPE_REACT_NATIVE_ANDROID
|
||||
])) {
|
||||
$schemes[] = $platform['scheme'];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user