@@ -62,7 +62,6 @@ import {
6262import { UIShowStyleBase } from '@sofie-automation/meteor-lib/dist/api/showStyles'
6363import {
6464 BlueprintId ,
65- OrganizationId ,
6665 RundownId ,
6766 RundownPlaylistId ,
6867 ShowStyleBaseId ,
@@ -119,7 +118,6 @@ export async function setupMockPeripheralDevice(
119118 const defaultDevice : PeripheralDevice = {
120119 _id : protectString ( 'mockDevice' + dbI ++ ) ,
121120 name : 'mockDevice' ,
122- organizationId : null ,
123121 studioAndConfigId : studio ? { studioId : studio . _id , configId : 'test' } : undefined ,
124122
125123 category : category ,
@@ -252,7 +250,6 @@ export async function setupMockShowStyleBase(
252250 const defaultShowStyleBase : DBShowStyleBase = {
253251 _id : protectString ( 'mockShowStyleBase' + dbI ++ ) ,
254252 name : 'mockShowStyleBase' ,
255- organizationId : null ,
256253 outputLayersWithOverrides : wrapDefaultObject (
257254 normalizeArray (
258255 [
@@ -347,10 +344,7 @@ export function packageBlueprint<T extends BlueprintManifestBase>(
347344 } )
348345 return `({default: (${ code } )()})`
349346}
350- export async function setupMockStudioBlueprint (
351- showStyleBaseId : ShowStyleBaseId ,
352- organizationId : OrganizationId | null = null
353- ) : Promise < Blueprint > {
347+ export async function setupMockStudioBlueprint ( showStyleBaseId : ShowStyleBaseId ) : Promise < Blueprint > {
354348 const { INTEGRATION_VERSION , TSR_VERSION } = getBlueprintDependencyVersions ( )
355349
356350 const BLUEPRINT_TYPE = BlueprintManifestType . STUDIO
@@ -394,20 +388,12 @@ export async function setupMockStudioBlueprint(
394388 const blueprintId : BlueprintId = protectString ( 'mockBlueprint' + dbI ++ )
395389 const blueprintName = 'mockBlueprint'
396390
397- return internalUploadBlueprint (
398- blueprintId ,
399- code ,
400- {
401- blueprintName,
402- ignoreIdChange : true ,
403- } ,
404- organizationId
405- )
391+ return internalUploadBlueprint ( blueprintId , code , {
392+ blueprintName,
393+ ignoreIdChange : true ,
394+ } )
406395}
407- export async function setupMockShowStyleBlueprint (
408- showStyleVariantId : ShowStyleVariantId ,
409- organizationId ?: OrganizationId | null
410- ) : Promise < Blueprint > {
396+ export async function setupMockShowStyleBlueprint ( showStyleVariantId : ShowStyleVariantId ) : Promise < Blueprint > {
411397 const { INTEGRATION_VERSION , TSR_VERSION } = getBlueprintDependencyVersions ( )
412398
413399 const BLUEPRINT_TYPE = BlueprintManifestType . SHOWSTYLE
@@ -533,15 +519,10 @@ export async function setupMockShowStyleBlueprint(
533519 const blueprintId : BlueprintId = protectString ( 'mockBlueprint' + dbI ++ )
534520 const blueprintName = 'mockBlueprint'
535521
536- return internalUploadBlueprint (
537- blueprintId ,
538- code ,
539- {
540- blueprintName,
541- ignoreIdChange : true ,
542- } ,
543- organizationId
544- )
522+ return internalUploadBlueprint ( blueprintId , code , {
523+ blueprintName,
524+ ignoreIdChange : true ,
525+ } )
545526}
546527export interface DefaultEnvironment {
547528 showStyleBaseId : ShowStyleBaseId
@@ -560,36 +541,31 @@ export interface DefaultEnvironment {
560541
561542 ingestDevice : PeripheralDevice
562543}
563- export async function setupDefaultStudioEnvironment (
564- organizationId : OrganizationId | null = null
565- ) : Promise < DefaultEnvironment > {
544+ export async function setupDefaultStudioEnvironment ( ) : Promise < DefaultEnvironment > {
566545 const core = await setupMockCore ( { } )
567546 const systemTriggeredActions = await setupMockTriggeredActions ( )
568547
569548 const showStyleBaseId : ShowStyleBaseId = getRandomId ( )
570549 const showStyleVariantId : ShowStyleVariantId = getRandomId ( )
571550
572- const studioBlueprint = await setupMockStudioBlueprint ( showStyleBaseId , organizationId )
573- const showStyleBlueprint = await setupMockShowStyleBlueprint ( showStyleVariantId , organizationId )
551+ const studioBlueprint = await setupMockStudioBlueprint ( showStyleBaseId )
552+ const showStyleBlueprint = await setupMockShowStyleBlueprint ( showStyleVariantId )
574553
575554 const showStyleBase = await setupMockShowStyleBase ( showStyleBlueprint . _id , {
576555 _id : showStyleBaseId ,
577- organizationId : organizationId ,
578556 } )
579557 const triggeredActions = await setupMockTriggeredActions ( showStyleBase . _id )
580558 const showStyleVariant = await setupMockShowStyleVariant ( showStyleBase . _id , { _id : showStyleVariantId } )
581559
582560 const studio = await setupMockStudio ( {
583561 blueprintId : studioBlueprint . _id ,
584562 supportedShowStyleBase : [ showStyleBaseId ] ,
585- organizationId : organizationId ,
586563 } )
587564 const ingestDevice = await setupMockPeripheralDevice (
588565 PeripheralDeviceCategory . INGEST ,
589566 PeripheralDeviceType . MOS ,
590567 PERIPHERAL_SUBTYPE_PROCESS ,
591- studio ,
592- { organizationId : organizationId }
568+ studio
593569 )
594570 const { worker, workerThreadStatuses } = await setupMockWorker ( )
595571
@@ -641,7 +617,6 @@ export async function setupDefaultRundown(
641617 const sourceLayerIds = Object . keys ( applyAndValidateOverrides ( env . showStyleBase . sourceLayersWithOverrides ) . obj )
642618
643619 const rundown : DBRundown = {
644- organizationId : null ,
645620 studioId : env . studio . _id ,
646621 showStyleBaseId : env . showStyleBase . _id ,
647622 showStyleVariantId : env . showStyleVariant . _id ,
0 commit comments