From 7a7724fbc5a7a3dab99f367c13336b7a7b3be797 Mon Sep 17 00:00:00 2001 From: Julian Waller Date: Wed, 11 Oct 2023 15:13:32 +0100 Subject: [PATCH] chore: method doc --- .../src/playout/model/PlayoutPartInstanceModel.ts | 9 +++++++-- .../model/implementation/PlayoutPartInstanceModelImpl.ts | 3 --- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/packages/job-worker/src/playout/model/PlayoutPartInstanceModel.ts b/packages/job-worker/src/playout/model/PlayoutPartInstanceModel.ts index c655844716..0b7b4e8316 100644 --- a/packages/job-worker/src/playout/model/PlayoutPartInstanceModel.ts +++ b/packages/job-worker/src/playout/model/PlayoutPartInstanceModel.ts @@ -56,8 +56,13 @@ export interface PlayoutPartInstanceModel { infiniteInstanceId: PieceInstanceInfiniteId ): PlayoutPieceInstanceModel - /** @deprecated HACK */ - insertPlannedPiece(doc: Omit): PlayoutPieceInstanceModel + /** + * Insert a Piece as if it were originally planned at the time of ingest + * This is a weird operation to have for playout, but it is a needed part of the SyncIngestChanges flow + * @param piece Piece to insert into this PartInstance + * @returns The inserted PlayoutPieceInstanceModel + */ + insertPlannedPiece(piece: Omit): PlayoutPieceInstanceModel insertVirtualPiece( start: number, diff --git a/packages/job-worker/src/playout/model/implementation/PlayoutPartInstanceModelImpl.ts b/packages/job-worker/src/playout/model/implementation/PlayoutPartInstanceModelImpl.ts index c8373b8e85..51d601ede0 100644 --- a/packages/job-worker/src/playout/model/implementation/PlayoutPartInstanceModelImpl.ts +++ b/packages/job-worker/src/playout/model/implementation/PlayoutPartInstanceModelImpl.ts @@ -243,9 +243,6 @@ export class PlayoutPartInstanceModelImpl implements PlayoutPartInstanceModel { return pieceInstanceModel } - /** @deprecated HACK - * - */ insertPlannedPiece(piece: Omit): PlayoutPieceInstanceModel { const pieceInstanceId = getPieceInstanceIdForPiece(this.PartInstance._id, piece._id) if (this.PieceInstancesImpl.has(pieceInstanceId))