refactor: cap added time

This commit is contained in:
Carlos Valente
2024-05-20 19:59:37 +02:00
committed by Carlos Valente
parent d05cc88748
commit 7cefe07594
4 changed files with 13 additions and 5 deletions
@@ -1,11 +1,10 @@
import { OntimeEvent, isKeyOfType, isOntimeEvent } from 'ontime-types';
import { MILLIS_PER_SECOND } from 'ontime-utils';
import { MILLIS_PER_SECOND, maxDuration } from 'ontime-utils';
import { DataProvider } from '../classes/data-provider/DataProvider.js';
import { editEvent } from '../services/rundown-service/RundownService.js';
import { getEventWithId } from '../services/rundown-service/rundownUtils.js';
import { coerceBoolean, coerceColour, coerceNumber, coerceString } from '../utils/coerceType.js';
import { maxDuration } from '../../../../packages/utils/src/date-utils/conversionUtils.js';
const whitelistedPayload = {
title: coerceString,