From e34a5a7c3df73b221efacc0b00a3ca4b76f42f39 Mon Sep 17 00:00:00 2001 From: Koushik Dutta Date: Wed, 21 Aug 2024 12:03:29 -0700 Subject: [PATCH] snapshot: fix perma broken nvr snapshots --- plugins/snapshot/package-lock.json | 4 ++-- plugins/snapshot/package.json | 2 +- plugins/snapshot/src/main.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/snapshot/package-lock.json b/plugins/snapshot/package-lock.json index da3f9d7d9..46323c37c 100644 --- a/plugins/snapshot/package-lock.json +++ b/plugins/snapshot/package-lock.json @@ -1,12 +1,12 @@ { "name": "@scrypted/snapshot", - "version": "0.2.54", + "version": "0.2.55", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@scrypted/snapshot", - "version": "0.2.54", + "version": "0.2.55", "dependencies": { "@types/node": "^20.10.6", "sharp": "^0.33.1", diff --git a/plugins/snapshot/package.json b/plugins/snapshot/package.json index ef488c415..a270c5b29 100644 --- a/plugins/snapshot/package.json +++ b/plugins/snapshot/package.json @@ -1,6 +1,6 @@ { "name": "@scrypted/snapshot", - "version": "0.2.54", + "version": "0.2.55", "description": "Snapshot Plugin for Scrypted", "scripts": { "scrypted-setup-project": "scrypted-setup-project", diff --git a/plugins/snapshot/src/main.ts b/plugins/snapshot/src/main.ts index 146dde2a3..e38686411 100644 --- a/plugins/snapshot/src/main.ts +++ b/plugins/snapshot/src/main.ts @@ -728,7 +728,7 @@ export class SnapshotPlugin extends AutoenableMixinProvider implements MixinProv } }; - if (mixin.storageSettings.values.snapshotResolution === 'Full Resolution') + if (mixin?.storageSettings.values.snapshotResolution === 'Full Resolution') delete rpo.picture; if (mixin && iface === ScryptedInterface.Camera) {