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

Commit 44d159d

Browse files
author
XiaoLin
committed
fix: more logical
1 parent 91623d0 commit 44d159d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/module/metadata.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ class Metadata {
486486
for (const i in params) {
487487
const param = params[i]
488488

489-
result = result.orWhere('title', 'like', `%${param}%`)
489+
result = result.andWhere('title', 'like', `%${param}%`)
490490
.orWhere('companyName', 'like', `%${param}%`)
491491
.orWhere('companyId', 'like', `%${param}%`)
492492
}

0 commit comments

Comments
 (0)