refactor: refetch targets is enum

This commit is contained in:
Carlos Valente
2025-05-26 20:13:56 +02:00
committed by arc-alex
parent 17deeddb87
commit 0b719c485f
3 changed files with 9 additions and 4 deletions
@@ -1,6 +1,6 @@
import { OntimeReport, OntimeEventReport, TimerLifeCycle } from 'ontime-types';
import { RuntimeState } from '../../stores/runtimeState.js';
import { sendRefetch } from '../../adapters/websocketAux.js';
import { RefetchTargets, sendRefetch } from '../../adapters/websocketAux.js';
import { DeepReadonly } from 'ts-essentials';
const report = new Map<string, OntimeEventReport>();
@@ -58,7 +58,7 @@ export function triggerReportEntry(
report.set(eventId, { startedAt, endedAt: state.clock });
formattedReport = null;
sendRefetch({
target: 'REPORT',
target: RefetchTargets.Report,
});
}
}