From f135be403c4c53f46cf27da94e046f06bbeb000f Mon Sep 17 00:00:00 2001 From: Zaid Abdulla Date: Mon, 28 Oct 2019 19:10:43 -0700 Subject: [PATCH] Tag object should not be writable --- lib/mongodb-functions.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/mongodb-functions.ts b/lib/mongodb-functions.ts index 47e96ad..fc0d060 100644 --- a/lib/mongodb-functions.ts +++ b/lib/mongodb-functions.ts @@ -380,7 +380,7 @@ export function flattenDevice(device): FlatDevice { }; } else if (name === "_tags") { output["Tags"] = { - writable: true, + writable: false, writableTimestamp: timestamp, object: true, objectTimestamp: timestamp @@ -390,7 +390,7 @@ export function flattenDevice(device): FlatDevice { output[`Tags.${t}`] = { value: [true, "xsd:boolean"], valueTimestamp: timestamp, - writable: false, + writable: true, writableTimestamp: timestamp, object: false, objectTimestamp: timestamp