fix: onStart triggered by pending roll start

This commit is contained in:
Carlos Valente
2026-02-18 06:41:01 +01:00
committed by Carlos Valente
parent 3c0e7ba4d5
commit 1fe58e21be
@@ -548,7 +548,14 @@ class RuntimeService {
const metadata = getRundownMetadata();
try {
runtimeState.roll(rundown, metadata, offset);
const result = runtimeState.roll(rundown, metadata, offset);
if (result.didStart) {
const newState = runtimeState.getState();
process.nextTick(() => {
triggerReportEntry(TimerLifeCycle.onStart, newState);
triggerAutomations(TimerLifeCycle.onStart, newState);
});
}
} catch (error) {
logger.error(LogOrigin.Server, `Roll: ${error}`);
}