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