Skip to content

Commit 56d2e35

Browse files
Merge pull request #263 from yashsinghcodes/quick
fix: bool need to be present before using must
2 parents 0a41a7e + 0318c9d commit 56d2e35

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

db-connector.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5436,9 +5436,11 @@ func FindUser(ctx context.Context, username string) ([]User, error) {
54365436
query := map[string]interface{}{
54375437
"size": 1000,
54385438
"query": map[string]interface{}{
5439-
"must": map[string]interface{}{
5440-
"match": map[string]interface{}{
5441-
"username": username,
5439+
"bool": map[string]interface{} {
5440+
"must": map[string]interface{}{
5441+
"match": map[string]interface{}{
5442+
"username": username,
5443+
},
54425444
},
54435445
},
54445446
},

0 commit comments

Comments
 (0)