From 11b7c133a4013e053b1c8a31198c6b5877fe8297 Mon Sep 17 00:00:00 2001 From: Joan Date: Wed, 16 May 2018 13:01:14 +0200 Subject: [PATCH] Added package & dropdown replaced search regexp with like --- client/core/src/components/drop-down/drop-down.js | 2 +- services/mailer/package.json | 3 ++- services/print/package.json | 4 +++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/client/core/src/components/drop-down/drop-down.js b/client/core/src/components/drop-down/drop-down.js index bfe372b7d..c8b6c2a52 100755 --- a/client/core/src/components/drop-down/drop-down.js +++ b/client/core/src/components/drop-down/drop-down.js @@ -196,7 +196,7 @@ export default class DropDown extends Component { } let where = {}; - where[this.showField] = {regexp: search}; + where[this.showField] = {like: `%${search}%`}; return where; } diff --git a/services/mailer/package.json b/services/mailer/package.json index 408ce541d..17bd23567 100644 --- a/services/mailer/package.json +++ b/services/mailer/package.json @@ -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", diff --git a/services/print/package.json b/services/print/package.json index d63a8fe34..9d763c113 100644 --- a/services/print/package.json +++ b/services/print/package.json @@ -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",