mirror of https://gitee.com/bigwinds/arangodb
minor fixes in gharial and ahuacatl
This commit is contained in:
parent
b0722d9981
commit
267c8ba451
|
@ -47,7 +47,7 @@
|
||||||
if (testee === undefined) {
|
if (testee === undefined) {
|
||||||
return deflt || false;
|
return deflt || false;
|
||||||
}
|
}
|
||||||
return testee.toLowerCase() === "true";
|
return testee.toLowerCase() === "true" || testee === "1";
|
||||||
},
|
},
|
||||||
buildError = function(err, code) {
|
buildError = function(err, code) {
|
||||||
return {
|
return {
|
||||||
|
|
|
@ -4773,6 +4773,9 @@ function FILTER_RESTRICTION (list, restrictionList) {
|
||||||
|
|
||||||
function DOCUMENTS_BY_EXAMPLE (collectionList, example) {
|
function DOCUMENTS_BY_EXAMPLE (collectionList, example) {
|
||||||
var res = [];
|
var res = [];
|
||||||
|
if (example === "null") {
|
||||||
|
example = [{}];
|
||||||
|
}
|
||||||
if (!example) {
|
if (!example) {
|
||||||
example = [{}];
|
example = [{}];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue