Skip to content

Commit bb35893

Browse files
Julusianjstarpl
authored andcommitted
fix: add getCurrentTime to SyncIngestUpdateToPartInstanceContext
1 parent ab2023c commit bb35893

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

packages/blueprints-integration/src/context/syncIngestChangesContext.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ import type {
55
IBlueprintPiece,
66
IBlueprintPieceInstance,
77
} from '../documents'
8+
import type { IEventContext } from './eventContext'
89

9-
export interface ISyncIngestUpdateToPartInstanceContext extends IRundownUserContext {
10+
export interface ISyncIngestUpdateToPartInstanceContext extends IRundownUserContext, IEventContext {
1011
/** Sync a pieceInstance. Inserts the pieceInstance if new, updates if existing. Optionally pass in a mutated Piece, to override the content of the instance */
1112
syncPieceInstance(
1213
pieceInstanceId: string,

packages/job-worker/src/blueprints/context/SyncIngestUpdateToPartInstanceContext.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ import {
3131
serializePieceTimelineObjectsBlob,
3232
} from '@sofie-automation/corelib/dist/dataModel/Piece'
3333
import { EXPECTED_INGEST_TO_PLAYOUT_TIME } from '@sofie-automation/shared-lib/dist/core/constants'
34+
import { getCurrentTime } from '../../lib'
3435

3536
export class SyncIngestUpdateToPartInstanceContext
3637
extends RundownUserContext
@@ -213,4 +214,8 @@ export class SyncIngestUpdateToPartInstanceContext
213214

214215
return unprotectStringArray(pieceInstanceIdsToRemove)
215216
}
217+
218+
getCurrentTime(): number {
219+
return getCurrentTime()
220+
}
216221
}

0 commit comments

Comments
 (0)