mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-08 08:53:51 +00:00
refactor: small tweaks and fixes
This commit is contained in:
@@ -85,13 +85,13 @@ const actionHandlers: Record<string, ActionHandler> = {
|
||||
return { payload: 'success' };
|
||||
}
|
||||
if ('id' in payload) {
|
||||
assert.isString(payload);
|
||||
runtimeService.startById(payload);
|
||||
assert.isString(payload.id);
|
||||
runtimeService.startById(payload.id);
|
||||
return { payload: 'success' };
|
||||
}
|
||||
if ('cue' in payload) {
|
||||
assert.isString(payload);
|
||||
runtimeService.startByCue(payload);
|
||||
assert.isString(payload.cue);
|
||||
runtimeService.startByCue(payload.cue);
|
||||
return { payload: 'success' };
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user