mirror of
https://github.com/appwrite/appwrite
synced 2026-05-24 09:28:40 +00:00
fix: tests
This commit is contained in:
parent
c184938a2a
commit
f369e9100f
2 changed files with 4 additions and 4 deletions
|
|
@ -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()) {
|
||||
|
|
|
|||
|
|
@ -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'];
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue