Skip to content

Commit 4f4eded

Browse files
author
Igor Khomenko
committed
Merge pull request #84 from QuickBlox/develop.sandcastle
instanceof
2 parents 084ee9c + fe54eb6 commit 4f4eded

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

js/modules/qbUsers.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
*/
77

88
var config = require('../qbConfig'),
9-
Utils = require('../qbUtils');
9+
Utils = require('../qbUtils'),
10+
util = require('util');
1011

1112
var DATE_FIELDS = ['created_at', 'updated_at', 'last_request_at'];
1213
var NUMBER_FIELDS = ['id', 'external_user_id'];
@@ -139,7 +140,7 @@ module.exports = UsersProxy;
139140
function generateFilter(obj) {
140141
var type = obj.field in DATE_FIELDS ? 'date' : typeof obj.value;
141142

142-
if (obj.value instanceof Array) {
143+
if (obj.value instanceof Array || util.isArray(obj.value)) {
143144
if (type == 'object') {
144145
type = typeof obj.value[0];
145146
}

0 commit comments

Comments
 (0)