refactor: align property names between block and event

This commit is contained in:
Carlos Valente
2025-06-29 08:02:43 +02:00
committed by Carlos Valente
parent b66eac3c9f
commit 0726c04f20
10 changed files with 35 additions and 36 deletions
@@ -585,8 +585,8 @@ describe('processRundown()', () => {
'1': {
type: SupportedEntry.Block,
entries: ['100', '200', '300'],
startTime: 100,
endTime: 400,
timeStart: 100,
timeEnd: 400,
duration: 300,
isFirstLinked: false,
},
@@ -625,8 +625,8 @@ describe('processRundown()', () => {
'1': {
type: SupportedEntry.Block,
entries: ['101', '102', '103'],
startTime: 100,
endTime: 400,
timeStart: 100,
timeEnd: 400,
duration: 300,
isFirstLinked: false,
},
@@ -636,8 +636,8 @@ describe('processRundown()', () => {
'2': {
type: SupportedEntry.Block,
entries: ['201', '202', '203'],
startTime: 500,
endTime: 800,
timeStart: 500,
timeEnd: 800,
duration: 300,
isFirstLinked: false,
},
@@ -647,8 +647,8 @@ describe('processRundown()', () => {
'3': {
type: SupportedEntry.Block,
entries: ['301', '302', '303'],
startTime: 900,
endTime: 1200,
timeStart: 900,
timeEnd: 1200,
duration: 300,
isFirstLinked: false,
},
@@ -747,8 +747,8 @@ export function processRundown(
// update block metadata
processedEntry.duration = totalBlockDuration;
processedEntry.startTime = blockStartTime;
processedEntry.endTime = blockEndTime;
processedEntry.timeStart = blockStartTime;
processedEntry.timeEnd = blockEndTime;
processedEntry.isFirstLinked = isFirstLinked;
processedEntry.entries = blockEvents;
}
@@ -162,8 +162,8 @@ export function createBlock(patch?: Partial<OntimeBlock>): OntimeBlock {
colour: makeString(patch.colour, ''),
custom: patch.custom ?? {},
revision: 0,
startTime: null,
endTime: null,
timeStart: null,
timeEnd: null,
duration: 0,
isFirstLinked: false,
};