We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 084ee9c + fe54eb6 commit 4f4ededCopy full SHA for 4f4eded
js/modules/qbUsers.js
@@ -6,7 +6,8 @@
6
*/
7
8
var config = require('../qbConfig'),
9
- Utils = require('../qbUtils');
+ Utils = require('../qbUtils'),
10
+ util = require('util');
11
12
var DATE_FIELDS = ['created_at', 'updated_at', 'last_request_at'];
13
var NUMBER_FIELDS = ['id', 'external_user_id'];
@@ -139,7 +140,7 @@ module.exports = UsersProxy;
139
140
function generateFilter(obj) {
141
var type = obj.field in DATE_FIELDS ? 'date' : typeof obj.value;
142
- if (obj.value instanceof Array) {
143
+ if (obj.value instanceof Array || util.isArray(obj.value)) {
144
if (type == 'object') {
145
type = typeof obj.value[0];
146
}
0 commit comments