diff --git a/common/src/autoenable-mixin-provider.ts b/common/src/autoenable-mixin-provider.ts index 91108ab79..929b727de 100644 --- a/common/src/autoenable-mixin-provider.ts +++ b/common/src/autoenable-mixin-provider.ts @@ -77,5 +77,5 @@ export abstract class AutoenableMixinProvider extends ScryptedDeviceBase { this.storage.setItem('hasEnabledMixin', JSON.stringify(this.hasEnabledMixin)); } - abstract canMixin(type: ScryptedDeviceType, interfaces: string[]): Promise; + abstract canMixin(type: ScryptedDeviceType | string, interfaces: string[]): Promise; } diff --git a/common/src/zygote.ts b/common/src/zygote.ts index 3bedcce8d..b9f2dbb0a 100644 --- a/common/src/zygote.ts +++ b/common/src/zygote.ts @@ -23,7 +23,9 @@ export function createService(options: ForkOptions, create: (t: Promise currentFork = sdk.fork(options); currentFork.worker.on('exit', () => currentResult = undefined); currentResult = create(currentFork.result); - currentResult.catch(() => currentResult = undefined); + currentResult.catch(() => { + currentResult = undefined; + }); return currentResult; },