Some refactoring

This commit is contained in:
Zaid Abdulla committed 2018-12-26 00:22:07 -08:00
1 parent 3cfac28fb1
commit 957417837e
10 files changed
+142 -58

No files matched your search

+2 -2
View File
@@ -109,9 +109,9 @@ function recursive(input, root, output, timestamp) {
childrenTimestamp = input["_timestamp"];
const attrs = {};
if (tree["_value"]) {
if (tree["_value"] != null) {
attrs["value"] = [tree["_value"], tree["_type"]];
attrs["valueTimestamp"] = childrenTimestamp;
attrs["valueTimestamp"] = tree["_timestamp"] || childrenTimestamp;
attrs["object"] = false;
attrs["objectTimestamp"] = childrenTimestamp;
} else if (tree["_object"] != null) {