refactor: server code (#2545)

+ Remove duplicated await
+ Replace some legacy codes with ES6
+ Fix some of eslint problems
This commit is contained in:
Jafar Akhondali
2020-10-14 11:16:27 -04:00
committed by GitHub
parent 0a1f0ac9e3
commit 5ba36ee421
12 changed files with 27 additions and 39 deletions
@@ -104,7 +104,7 @@ module.exports = {
},
{
query_string: {
query: "*" + q + "*"
query: `*${q}*`
}
}
],