chore: improve convention entry <> event

This commit is contained in:
Carlos Valente
2025-04-13 20:46:47 +02:00
committed by arc-alex
parent d2c7b34142
commit 82dc1bc56b
23 changed files with 211 additions and 210 deletions
@@ -30,7 +30,7 @@ import {
findPrevious,
getEventAtIndex,
getNextEventWithCue,
getEventWithId,
getEntryWithId,
getCurrentRundown,
getTimedEvents,
getRundownData,
@@ -258,7 +258,7 @@ class RuntimeService {
if (safeOption || eventInMemory) {
if (state.eventNow !== null) {
// load stuff again, but keep running if our events still exist
const eventNow = getEventWithId(state.eventNow.id);
const eventNow = getEntryWithId(state.eventNow.id);
if (!isOntimeEvent(eventNow) || !isPlayableEvent(eventNow)) {
// maybe the event was deleted or the skip state was changed
runtimeState.stop();
@@ -323,7 +323,7 @@ class RuntimeService {
*/
@broadcastResult
public startById(eventId: string): boolean {
const event = getEventWithId(eventId);
const event = getEntryWithId(eventId);
if (!event || !isOntimeEvent(event)) {
return false;
}
@@ -377,7 +377,7 @@ class RuntimeService {
*/
@broadcastResult
public loadById(eventId: string): boolean {
const event = getEventWithId(eventId);
const event = getEntryWithId(eventId);
if (!event || !isOntimeEvent(event)) {
return false;
}
@@ -654,7 +654,7 @@ class RuntimeService {
// the db would have to change for the event not to exist
// we do not know the reason for the crash, so we check anyway
const event = getEventWithId(selectedEventId);
const event = getEntryWithId(selectedEventId);
if (!isOntimeEvent(event) || !isPlayableEvent(event)) {
return;
}