Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit ed691ef

Browse files
committedJun 16, 2020
Fix minor bug
1 parent ee5c876 commit ed691ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/cbor/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ function getSenML(name: string, value: CloudMessageValue, timestamp: number, use
7575

7676
if (Utils.isObject(value)) return Object.keys(value)
7777
.map((key, i) => parse(value[key], `${name}:${key}`, i === 0 ? timestamp : -1, deviceId))
78-
.map((cborValue) => this.options.useCloudProtocolV2 ? toCloudProtocolV2(cborValue) : cborValue);
78+
.map((cborValue) => useCloudProtocolV2 ? toCloudProtocolV2(cborValue) : cborValue);
7979

8080
let cborValue = parse(value, name, timestamp, deviceId);
8181
if (useCloudProtocolV2) cborValue = toCloudProtocolV2(cborValue);

0 commit comments

Comments
 (0)
Please sign in to comment.