@@ -69,7 +69,6 @@ import {
6969import { UIShowStyleBase } from '@sofie-automation/meteor-lib/dist/api/showStyles'
7070import {
7171 BlueprintId ,
72- OrganizationId ,
7372 RundownId ,
7473 RundownPlaylistId ,
7574 ShowStyleBaseId ,
@@ -126,7 +125,6 @@ export async function setupMockPeripheralDevice(
126125 const defaultDevice : PeripheralDevice = {
127126 _id : protectString ( 'mockDevice' + dbI ++ ) ,
128127 name : 'mockDevice' ,
129- organizationId : null ,
130128 studioAndConfigId : studio ? { studioId : studio . _id , configId : 'test' } : undefined ,
131129
132130 category : category ,
@@ -259,7 +257,6 @@ export async function setupMockShowStyleBase(
259257 const defaultShowStyleBase : DBShowStyleBase = {
260258 _id : protectString ( 'mockShowStyleBase' + dbI ++ ) ,
261259 name : 'mockShowStyleBase' ,
262- organizationId : null ,
263260 outputLayersWithOverrides : wrapDefaultObject (
264261 normalizeArray (
265262 [
@@ -354,10 +351,7 @@ export function packageBlueprint<T extends BlueprintManifestBase>(
354351 } )
355352 return `({default: (${ code } )()})`
356353}
357- export async function setupMockStudioBlueprint (
358- showStyleBaseId : ShowStyleBaseId ,
359- organizationId : OrganizationId | null = null
360- ) : Promise < Blueprint > {
354+ export async function setupMockStudioBlueprint ( showStyleBaseId : ShowStyleBaseId ) : Promise < Blueprint > {
361355 const { INTEGRATION_VERSION , TSR_VERSION } = getBlueprintDependencyVersions ( )
362356
363357 const BLUEPRINT_TYPE = BlueprintManifestType . STUDIO
@@ -401,20 +395,12 @@ export async function setupMockStudioBlueprint(
401395 const blueprintId : BlueprintId = protectString ( 'mockBlueprint' + dbI ++ )
402396 const blueprintName = 'mockBlueprint'
403397
404- return internalUploadBlueprint (
405- blueprintId ,
406- code ,
407- {
408- blueprintName,
409- ignoreIdChange : true ,
410- } ,
411- organizationId
412- )
398+ return internalUploadBlueprint ( blueprintId , code , {
399+ blueprintName,
400+ ignoreIdChange : true ,
401+ } )
413402}
414- export async function setupMockShowStyleBlueprint (
415- showStyleVariantId : ShowStyleVariantId ,
416- organizationId ?: OrganizationId | null
417- ) : Promise < Blueprint > {
403+ export async function setupMockShowStyleBlueprint ( showStyleVariantId : ShowStyleVariantId ) : Promise < Blueprint > {
418404 const { INTEGRATION_VERSION , TSR_VERSION } = getBlueprintDependencyVersions ( )
419405
420406 const BLUEPRINT_TYPE = BlueprintManifestType . SHOWSTYLE
@@ -540,15 +526,10 @@ export async function setupMockShowStyleBlueprint(
540526 const blueprintId : BlueprintId = protectString ( 'mockBlueprint' + dbI ++ )
541527 const blueprintName = 'mockBlueprint'
542528
543- return internalUploadBlueprint (
544- blueprintId ,
545- code ,
546- {
547- blueprintName,
548- ignoreIdChange : true ,
549- } ,
550- organizationId
551- )
529+ return internalUploadBlueprint ( blueprintId , code , {
530+ blueprintName,
531+ ignoreIdChange : true ,
532+ } )
552533}
553534export interface DefaultEnvironment {
554535 showStyleBaseId : ShowStyleBaseId
@@ -567,36 +548,31 @@ export interface DefaultEnvironment {
567548
568549 ingestDevice : PeripheralDevice
569550}
570- export async function setupDefaultStudioEnvironment (
571- organizationId : OrganizationId | null = null
572- ) : Promise < DefaultEnvironment > {
551+ export async function setupDefaultStudioEnvironment ( ) : Promise < DefaultEnvironment > {
573552 const core = await setupMockCore ( { } )
574553 const systemTriggeredActions = await setupMockTriggeredActions ( )
575554
576555 const showStyleBaseId : ShowStyleBaseId = getRandomId ( )
577556 const showStyleVariantId : ShowStyleVariantId = getRandomId ( )
578557
579- const studioBlueprint = await setupMockStudioBlueprint ( showStyleBaseId , organizationId )
580- const showStyleBlueprint = await setupMockShowStyleBlueprint ( showStyleVariantId , organizationId )
558+ const studioBlueprint = await setupMockStudioBlueprint ( showStyleBaseId )
559+ const showStyleBlueprint = await setupMockShowStyleBlueprint ( showStyleVariantId )
581560
582561 const showStyleBase = await setupMockShowStyleBase ( showStyleBlueprint . _id , {
583562 _id : showStyleBaseId ,
584- organizationId : organizationId ,
585563 } )
586564 const triggeredActions = await setupMockTriggeredActions ( showStyleBase . _id )
587565 const showStyleVariant = await setupMockShowStyleVariant ( showStyleBase . _id , { _id : showStyleVariantId } )
588566
589567 const studio = await setupMockStudio ( {
590568 blueprintId : studioBlueprint . _id ,
591569 supportedShowStyleBase : [ showStyleBaseId ] ,
592- organizationId : organizationId ,
593570 } )
594571 const ingestDevice = await setupMockPeripheralDevice (
595572 PeripheralDeviceCategory . INGEST ,
596573 PeripheralDeviceType . MOS ,
597574 PERIPHERAL_SUBTYPE_PROCESS ,
598- studio ,
599- { organizationId : organizationId }
575+ studio
600576 )
601577 const { worker, workerThreadStatuses } = await setupMockWorker ( )
602578
@@ -648,7 +624,6 @@ export async function setupDefaultRundown(
648624 const sourceLayerIds = Object . keys ( applyAndValidateOverrides ( env . showStyleBase . sourceLayersWithOverrides ) . obj )
649625
650626 const rundown : DBRundown = {
651- organizationId : null ,
652627 studioId : env . studio . _id ,
653628 showStyleBaseId : env . showStyleBase . _id ,
654629 showStyleVariantId : env . showStyleVariant . _id ,
0 commit comments