Skip to content

Commit ad7b940

Browse files
style: update linter issues
1 parent 5ccceb7 commit ad7b940

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/utils/convert-filter.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
const escape = require('escape-regexp')
2-
const { Op, where, fn, col } = require('sequelize')
2+
const {
3+
Op, where, fn, col,
4+
} = require('sequelize')
35

46
const convertFilter = (filter) => {
57
if (!filter) {
@@ -17,9 +19,9 @@ const convertFilter = (filter) => {
1719
}
1820
return {
1921
[Op.and]: [
20-
where(fn('LOWER', col(property.name())), {[Op.like]:fn('LOWER', `%${escape(value)}%`)})
22+
where(fn('LOWER', col(property.name())), { [Op.like]: fn('LOWER', `%${escape(value)}%`) }),
2123
],
22-
...memo
24+
...memo,
2325
}
2426
case 'number':
2527
if (!Number.isNaN(Number(value))) {

0 commit comments

Comments
 (0)