refactor: generate ids for new rundowns

This commit is contained in:
Carlos Valente
2025-12-11 18:22:28 +01:00
committed by Carlos Valente
parent b70ef80320
commit f2b78e0f32
13 changed files with 146 additions and 73 deletions
@@ -8,7 +8,7 @@ import {
OntimeMilestone,
} from 'ontime-types';
import { defaultRundown } from '../../../models/dataModel.js';
import { makeNewRundown } from '../../../models/dataModel.js';
const baseEvent = {
type: SupportedEntry.Event,
@@ -63,7 +63,7 @@ export function makeOntimeMilestone(patch: Partial<OntimeMilestone>): OntimeMile
*/
export function makeRundown(patch: Partial<Rundown>): Rundown {
return {
...defaultRundown,
...makeNewRundown(),
...patch,
};
}