#1758 Añadir los alias como prefijos en los filtros

This commit is contained in:
Bernat 2019-10-15 08:32:25 +02:00
parent c46797d57e
commit fe5a77257f
1 changed files with 3 additions and 3 deletions

View File

@ -77,11 +77,11 @@ module.exports = Self => {
let where = buildFilter(ctx.args, (param, value) => {
switch (param) {
case 'search':
return {ref: {like: `%${value}%`}};
return {'i.ref': {like: `%${value}%`}};
case 'min':
return {amount: {gte: value}};
return {'i.amount': {gte: value}};
case 'max':
return {amount: {lte: value}};
return {'i.amount': {lte: value}};
case 'hasPdf':
return {'i.hasPdf': value};
case 'created':