Added package & dropdown replaced search regexp with like

This commit is contained in:
Joan Sanchez 2018-05-16 13:01:14 +02:00
parent 0fdb4a4785
commit 11b7c133a4
3 changed files with 6 additions and 3 deletions

View File

@ -196,7 +196,7 @@ export default class DropDown extends Component {
}
let where = {};
where[this.showField] = {regexp: search};
where[this.showField] = {like: `%${search}%`};
return where;
}

View File

@ -12,7 +12,8 @@
"nodemailer": "^4.0.1",
"path": "^0.12.7",
"request": "^2.83.0",
"require-yaml": "0.0.1"
"require-yaml": "0.0.1",
"fs-extra": "^5.0.0"
},
"repository": {
"type": "git",

View File

@ -10,7 +10,9 @@
"inline-css": "^2.2.2",
"mustache": "^2.3.0",
"mysql": "^2.13.0",
"path": "^0.12.7"
"path": "^0.12.7",
"require-yaml": "0.0.1",
"fs-extra": "^5.0.0"
},
"repository": {
"type": "git",