refactor: extract entry creation logic

This commit is contained in:
Carlos Valente
2026-02-13 20:36:54 +01:00
committed by Carlos Valente
parent 5777ef3532
commit 4827117163
11 changed files with 196 additions and 112 deletions
@@ -1,5 +1,5 @@
import { TimeStrategy, EndAction, TimerType, OntimeEvent } from 'ontime-types';
import { MILLIS_PER_HOUR } from 'ontime-utils';
import { createEvent, MILLIS_PER_HOUR } from 'ontime-utils';
import { assertType } from 'vitest';
@@ -7,7 +7,6 @@ import { demoDb } from '../../../models/demoProject.js';
import {
calculateDayOffset,
createEvent,
deleteById,
doesInvalidateMetadata,
duplicateRundown,