mirror of
https://github.com/koush/scrypted.git
synced 2026-02-03 14:13:28 +00:00
unifi-protect: fix fingerprint on new protect
This commit is contained in:
4
plugins/unifi-protect/package-lock.json
generated
4
plugins/unifi-protect/package-lock.json
generated
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "@scrypted/unifi-protect",
|
||||
"version": "0.0.163",
|
||||
"version": "0.0.164",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@scrypted/unifi-protect",
|
||||
"version": "0.0.163",
|
||||
"version": "0.0.164",
|
||||
"license": "Apache",
|
||||
"dependencies": {
|
||||
"@koush/unifi-protect": "file:../../external/unifi-protect",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@scrypted/unifi-protect",
|
||||
"version": "0.0.163",
|
||||
"version": "0.0.164",
|
||||
"description": "Unifi Protect Plugin for Scrypted",
|
||||
"author": "Scrypted",
|
||||
"license": "Apache",
|
||||
|
||||
@@ -221,7 +221,8 @@ export class UnifiProtect extends ScryptedDeviceBase implements Settings, Device
|
||||
debounceMotionDetected(unifiCamera);
|
||||
}
|
||||
else if (payload.type === 'fingerprintIdentified') {
|
||||
const userId: string = (payload as any).metadata?.fingerprint?.userId
|
||||
const anypay = payload as any;
|
||||
const userId: string = anypay.metadata?.fingerprint?.userId || anypay.metadata?.fingerprint?.ulpId;
|
||||
if (userId) {
|
||||
debounceFingerprintDetected(unifiCamera);
|
||||
detections[0].label = userId;
|
||||
|
||||
Reference in New Issue
Block a user