Merge branch 'master' of github.com:strapi/strapi into 3.0.0-alpha.22

This commit is contained in:
Jim LAURIE 2019-02-05 12:26:51 +01:00
commit 5f2d9c9543

View File

@ -6,7 +6,7 @@ module.exports = {
_.forEach(params.where, (where, key) => {
if (_.isArray(where.value) && where.symbol !== 'IN') {
for (const value in where.value) {
qb[value ? 'where' : 'orWhere'](key, where.symbol, where.value[value]);
qb[parseInt(value) ? 'orWhere' : 'where'](key, where.symbol, where.value[value]);
}
} else {
qb.where(key, where.symbol, where.value);