refactor: rename external message to secondary message

This commit is contained in:
Carlos Valente
2025-06-21 20:17:22 +02:00
committed by Carlos Valente
parent 0aeec12ccd
commit 3cd6cd2f55
18 changed files with 49 additions and 48 deletions
@@ -158,10 +158,10 @@ describe('parseOutput', () => {
parseOutput({
type: 'ontime',
action: 'message-secondary',
secondarySource: 'external',
secondarySource: 'secondary',
}),
).toMatchObject({
secondarySource: 'external',
secondarySource: 'secondary',
});
});
});
@@ -254,6 +254,6 @@ function indeterminateBooleanString(value: string): boolean | undefined {
*/
function chooseSecondarySource(value: string): SecondarySource {
if (value === 'aux') return 'aux';
if (value === 'external') return 'external';
if (value === 'secondary') return 'secondary';
return null;
}
@@ -2,7 +2,7 @@ import { LogOrigin, OntimeAction } from 'ontime-types';
import { logger } from '../../../classes/Logger.js';
import { auxTimerService } from '../../../services/aux-timer-service/AuxTimerService.js';
import * as messageService from '../../../services/message-service/MessageService.js';
import * as messageService from '../../../services/message-service/message.service.js';
export function toOntimeAction(action: OntimeAction) {
const actionType = action.action;