mirror of https://gitee.com/bigwinds/arangodb
fix handling of properties with value `false`
This commit is contained in:
parent
d3e57c9e3c
commit
ec26253f77
|
@ -336,10 +336,10 @@ ArangoCollection.prototype.properties = function (properties) {
|
|||
var body = {};
|
||||
|
||||
for (a in attributes) {
|
||||
if (attributes.hasOwnProperty(a)) {
|
||||
if (properties.hasOwnProperty(a) && properties[a]) {
|
||||
body[a] = properties[a];
|
||||
}
|
||||
if (attributes.hasOwnProperty(a) &&
|
||||
attributes[a] &&
|
||||
properties.hasOwnProperty(a)) {
|
||||
body[a] = properties[a];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -336,10 +336,10 @@ ArangoCollection.prototype.properties = function (properties) {
|
|||
var body = {};
|
||||
|
||||
for (a in attributes) {
|
||||
if (attributes.hasOwnProperty(a)) {
|
||||
if (properties.hasOwnProperty(a) && properties[a]) {
|
||||
body[a] = properties[a];
|
||||
}
|
||||
if (attributes.hasOwnProperty(a) &&
|
||||
attributes[a] &&
|
||||
properties.hasOwnProperty(a)) {
|
||||
body[a] = properties[a];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue