salesPerson filter fixed

This commit is contained in:
Juan 2018-06-20 09:53:13 +02:00
parent 3174f37e3e
commit 6e137283ec
1 changed files with 2 additions and 2 deletions

View File

@ -28,8 +28,8 @@ module.exports = Self => {
if (where) { if (where) {
if (where.firstName) { if (where.firstName) {
sqlWhere = `AND (em.firstName REGEXP ? OR em.name REGEXP ?)`; sqlWhere = `AND (em.firstName LIKE ? OR em.name LIKE ?)`;
let search = where.firstName.regexp; let search = where.firstName.like;
params.push(search); params.push(search);
params.push(search); params.push(search);
} }