File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed
Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 11import { ExpectedPackage } from '@sofie-automation/blueprints-integration'
22import { assertNever , literal } from '@sofie-automation/corelib/dist/lib'
33import { StudioLight } from '@sofie-automation/corelib/dist/dataModel/Studio'
4- import * as deepExtend from 'deep-extend'
4+ import deepExtend from 'deep-extend'
55import {
66 htmlTemplateGetSteps ,
77 htmlTemplateGetFileNamesFromSteps ,
Original file line number Diff line number Diff line change 1- import * as EventEmitter from 'events'
1+ import { EventEmitter } from 'events'
22import { Bucket } from '../collections/Buckets.js'
33import {
44 BucketId ,
Original file line number Diff line number Diff line change @@ -554,7 +554,8 @@ export function createAction(
554554 UserAction . CREATE_SNAPSHOT_FOR_DEBUG ,
555555 async ( e , ts , ctx ) =>
556556 triggersContext . MeteorCall . system . generateSingleUseToken ( ) . then ( async ( tokenResult ) => {
557- if ( ClientAPI . isClientResponseError ( tokenResult ) || ! tokenResult . result ) throw tokenResult
557+ if ( ClientAPI . isClientResponseError ( tokenResult ) ) throw tokenResult . error
558+ if ( ! tokenResult . result ) throw new Error ( 'Failed to generate token' )
558559 return triggersContext . MeteorCall . userAction . storeRundownSnapshot (
559560 e ,
560561 ts ,
You can’t perform that action at this time.
0 commit comments