fix: backdate rundown start when rolling

This commit is contained in:
Carlos Valente
2026-03-08 00:41:07 +01:00
committed by Carlos Valente
parent 5ff7861968
commit 6f1f10ccff
10 changed files with 235 additions and 31 deletions
@@ -4,6 +4,7 @@ import type { TimerType } from '../TimerType.type.js';
import type { TimeStrategy } from '../TimeStrategy.type.js';
import type { Trigger } from './Automation.type.js';
import type { EntryCustomFields } from './CustomFields.type.js';
import type { Day } from './Temporal.js';
export type EntryId = string;
@@ -77,7 +78,7 @@ export type OntimeEvent = OntimeBaseEvent & {
// !==== RUNTIME METADATA ====! //
revision: number;
delay: number; // calculated at runtime
dayOffset: number; // calculated at runtime
dayOffset: Day; // calculated at runtime
gap: number; // calculated at runtime
};
@@ -1,4 +1,4 @@
import type { OntimeDelay, OntimeEvent, OntimeGroup, OntimeMilestone } from 'ontime-types';
import type { Day, OntimeDelay, OntimeEvent, OntimeGroup, OntimeMilestone } from 'ontime-types';
import { EndAction, SupportedEntry, TimerType, TimeStrategy } from 'ontime-types';
export const event: Omit<OntimeEvent, 'id' | 'cue'> = {
@@ -24,7 +24,7 @@ export const event: Omit<OntimeEvent, 'id' | 'cue'> = {
parent: null,
revision: 0, // calculated at runtime
delay: 0, // calculated at runtime
dayOffset: 0, // calculated at runtime
dayOffset: 0 as Day, // calculated at runtime
gap: 0, // calculated at runtime
};