mirror of
https://github.com/strapi/strapi.git
synced 2026-01-08 05:04:10 +00:00
Fix condition with int instead of string
This commit is contained in:
parent
cd729ec0da
commit
f015d7bb2a
@ -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 === 0 ? '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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user