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
@@ -15,7 +15,7 @@ import {
import { getCueCandidate } from 'ontime-utils';
import { delay as delayDef } from '../../models/eventsDefinition.js';
import { sendRefetch } from '../../adapters/websocketAux.js';
import { RefetchTargets, sendRefetch } from '../../adapters/websocketAux.js';
import { createBlock, createEvent } from '../../api-data/rundown/rundown.utils.js';
import { updateRundownData } from '../../stores/runtimeState.js';
import { runtimeService } from '../runtime-service/RuntimeService.js';
@@ -334,7 +334,7 @@ function notifyChanges(options: NotifyChangesOptions) {
if (options.external) {
// advice socket subscribers of change
const payload = {
target: 'RUNDOWN',
target: RefetchTargets.Rundown,
changes: Array.isArray(options.timer) ? options.timer : undefined,
reload: options.reload,
revision: cache.getMetadata().revision,