fix: tests

This commit is contained in:
loks0n
2025-01-27 13:25:27 +00:00
parent c184938a2a
commit f369e9100f
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -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
View File
@@ -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'];
}