small fix

This commit is contained in:
shimon
2022-07-06 19:12:58 +03:00
parent d8f4d097d1
commit 6c7c5c1891
12 changed files with 297 additions and 323 deletions
+2 -2
View File
@@ -155,7 +155,7 @@ App::post('/v1/projects')
$dbForProject->createCollection($key, $attributes, $indexes);
}
if($dbForProject->exists($dbForProject->getDefaultDatabase(), 'video_profiles')) {
if ($dbForProject->exists($dbForProject->getDefaultDatabase(), 'video_profiles')) {
foreach (Config::getParam('video-profiles', []) as $profile) {
Authorization::skip(function () use ($project, $profile, $dbForProject) {
return $dbForProject->createDocument('video_profiles', new Document([
@@ -164,7 +164,7 @@ App::post('/v1/projects')
'audioBitrate' => $profile['audioBitrate'],
'width' => $profile['width'],
'height' => $profile['height'],
'stream' => 'hls'
'stream' => $profile['stream']
]));
});
}