@robtweed Please take a look:
|
if (defined === 1 || defined === 11) { |
|
document[index] = db.get(node).data; |
|
if (document[index] === 'true') document[index] = true; |
|
if (document[index] === 'false') document[index] = false; |
|
//document[index] = removeDoubleQuotes(document[index], db); |
|
} |
|
if (defined === 10 || defined === 11) { |
|
document[index] = getSubnodes(node); |
|
} |
What if node has data and has sub nodes (defined = 11)? In this case data set on line 97 was replaced on line 103. Is it correct?
@robtweed Please take a look:
ewd-document-store/lib/proto/getDocument.js
Lines 96 to 104 in a771f87
What if node has data and has sub nodes (defined = 11)? In this case data set on line 97 was replaced on line 103. Is it correct?