Skip to content
This repository has been archived by the owner on Jun 14, 2021. It is now read-only.

Commit

Permalink
fix: more logical
Browse files Browse the repository at this point in the history
  • Loading branch information
XiaoLin committed Apr 29, 2020
1 parent 91623d0 commit 44d159d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/module/metadata.js
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ class Metadata {
for (const i in params) {
const param = params[i]

result = result.orWhere('title', 'like', `%${param}%`)
result = result.andWhere('title', 'like', `%${param}%`)
.orWhere('companyName', 'like', `%${param}%`)
.orWhere('companyId', 'like', `%${param}%`)
}
Expand Down

0 comments on commit 44d159d

Please sign in to comment.