Duration
diff --git a/apps/server/src/api-data/rundown/__tests__/rundown.dao.test.ts b/apps/server/src/api-data/rundown/__tests__/rundown.dao.test.ts
index 096e00847..d800de298 100644
--- a/apps/server/src/api-data/rundown/__tests__/rundown.dao.test.ts
+++ b/apps/server/src/api-data/rundown/__tests__/rundown.dao.test.ts
@@ -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,
},
diff --git a/apps/server/src/api-data/rundown/rundown.dao.ts b/apps/server/src/api-data/rundown/rundown.dao.ts
index d82d37bf0..91032718a 100644
--- a/apps/server/src/api-data/rundown/rundown.dao.ts
+++ b/apps/server/src/api-data/rundown/rundown.dao.ts
@@ -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;
}
diff --git a/apps/server/src/api-data/rundown/rundown.utils.ts b/apps/server/src/api-data/rundown/rundown.utils.ts
index 9fbbda806..5c5415d66 100644
--- a/apps/server/src/api-data/rundown/rundown.utils.ts
+++ b/apps/server/src/api-data/rundown/rundown.utils.ts
@@ -162,8 +162,8 @@ export function createBlock(patch?: Partial
): OntimeBlock {
colour: makeString(patch.colour, ''),
custom: patch.custom ?? {},
revision: 0,
- startTime: null,
- endTime: null,
+ timeStart: null,
+ timeEnd: null,
duration: 0,
isFirstLinked: false,
};
diff --git a/apps/server/src/models/demoProject.ts b/apps/server/src/models/demoProject.ts
index ab9137eb5..cc6675edd 100644
--- a/apps/server/src/models/demoProject.ts
+++ b/apps/server/src/models/demoProject.ts
@@ -49,8 +49,8 @@ export const demoDb: DatabaseModel = {
targetDuration: null,
colour: 'hotpink',
revision: 0,
- startTime: null,
- endTime: null,
+ timeStart: null,
+ timeEnd: null,
duration: 0,
isFirstLinked: false,
custom: {
@@ -216,8 +216,8 @@ export const demoDb: DatabaseModel = {
targetDuration: null,
custom: {},
revision: 0,
- startTime: null,
- endTime: null,
+ timeStart: null,
+ timeEnd: null,
duration: 0,
isFirstLinked: false,
},
@@ -379,8 +379,8 @@ export const demoDb: DatabaseModel = {
targetDuration: null,
custom: {},
revision: 0,
- startTime: null,
- endTime: null,
+ timeStart: null,
+ timeEnd: null,
duration: 0,
isFirstLinked: false,
},
diff --git a/apps/server/src/models/eventsDefinition.ts b/apps/server/src/models/eventsDefinition.ts
index e39f8b315..92ef753e7 100644
--- a/apps/server/src/models/eventsDefinition.ts
+++ b/apps/server/src/models/eventsDefinition.ts
@@ -51,8 +51,8 @@ export const block: Omit = {
custom: {},
// !==== RUNTIME METADATA ====! //
revision: 0, // calculated at runtime
- startTime: null, // calculated at runtime
- endTime: null, // calculated at runtime
+ timeStart: null, // calculated at runtime
+ timeEnd: null, // calculated at runtime
duration: 0, // calculated at runtime
isFirstLinked: false, // calculated at runtime
};
diff --git a/apps/server/test-db/db.json b/apps/server/test-db/db.json
index 9607fb90a..35bdf09f7 100644
--- a/apps/server/test-db/db.json
+++ b/apps/server/test-db/db.json
@@ -172,8 +172,8 @@
"skip": false,
"custom": {},
"revision": 0,
- "startTime": null,
- "endTime": null,
+ "timeStart": null,
+ "timeEnd": null,
"duration": 0,
"isFirstLinked": false
},
@@ -327,8 +327,8 @@
"skip": false,
"custom": {},
"revision": 0,
- "startTime": null,
- "endTime": null,
+ "timeStart": null,
+ "timeEnd": null,
"duration": 0,
"isFirstLinked": false,
"numEvents": 0
diff --git a/e2e/tests/fixtures/e2e-test-db.json b/e2e/tests/fixtures/e2e-test-db.json
index ac8feda6c..d96651a38 100644
--- a/e2e/tests/fixtures/e2e-test-db.json
+++ b/e2e/tests/fixtures/e2e-test-db.json
@@ -190,8 +190,8 @@
"skip": false,
"custom": {},
"revision": 0,
- "startTime": null,
- "endTime": null,
+ "timeStart": null,
+ "timeEnd": null,
"duration": 0,
"isFirstLinked": false
},
@@ -345,8 +345,8 @@
"skip": false,
"custom": {},
"revision": 0,
- "startTime": null,
- "endTime": null,
+ "timeStart": null,
+ "timeEnd": null,
"duration": 0,
"isFirstLinked": false
},
diff --git a/packages/types/src/definitions/core/OntimeEvent.type.ts b/packages/types/src/definitions/core/OntimeEvent.type.ts
index 1dd4da846..88d9e90e6 100644
--- a/packages/types/src/definitions/core/OntimeEvent.type.ts
+++ b/packages/types/src/definitions/core/OntimeEvent.type.ts
@@ -30,8 +30,8 @@ export type OntimeBlock = OntimeBaseEvent & {
custom: EntryCustomFields;
// !==== RUNTIME METADATA ====! //
revision: number;
- startTime: MaybeNumber; // calculated at runtime
- endTime: MaybeNumber; // calculated at runtime
+ timeStart: MaybeNumber; // calculated at runtime
+ timeEnd: MaybeNumber; // calculated at runtime
duration: number; // calculated at runtime
isFirstLinked: boolean; // calculated at runtime, whether the first event is linked
};