Merge pull request 'Warmfix[ZoneList]: Fixed id filter' (!1739) from Warmfix-ZoneListIdFilter into test
gitea/salix-front/pipeline/head This commit looks good Details

Reviewed-on: #1739
Reviewed-by: Javier Segarra <jsegarra@verdnatura.es>
This commit is contained in:
Jon Elias 2025-04-23 14:16:43 +00:00
commit 3876dc4c34
1 changed files with 3 additions and 5 deletions

View File

@ -188,16 +188,14 @@ const exprBuilder = (param, value) => {
return {
code: { like: `%${value}%` },
};
case 'id':
case 'price':
case 'agencyModeFk':
return {
agencyModeFk: value,
[param]: value,
};
case 'search':
return /^\d+$/.test(value) ? { id: value } : { name: { like: `%${value}%` } };
case 'price':
return {
price: value,
};
}
};