Skip to content

Commit

Permalink
Fixed bug in meilisearch list function (#153)
Browse files Browse the repository at this point in the history
  • Loading branch information
Honigeintopf authored Sep 4, 2024
1 parent 045c507 commit c77bf9c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion auditing/meilisearch.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,13 @@ func (a *meiliAuditing) Search(filter EntryFilter) ([]Entry, error) {
continue
}

indexQuery := reqProto
indexQuery := &meilisearch.SearchRequest{
Filter: reqProto.Filter,
Query: reqProto.Query,
Sort: reqProto.Sort,
Limit: reqProto.Limit,
}

indexQuery.IndexUID = index.UID
req.Queries = append(req.Queries, indexQuery)

Expand Down
2 changes: 1 addition & 1 deletion pkg/ssh/ssh.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ func (c *Client) Connect(env *Env) error {
ssh.TTY_OP_OSPEED: 115200, // output speed = 14.4kbaud
}

fileDescriptor := int(os.Stdin.Fd())
fileDescriptor := int(os.Stdin.Fd()) //nolint

if term.IsTerminal(fileDescriptor) {
originalState, err := term.MakeRaw(fileDescriptor)
Expand Down

0 comments on commit c77bf9c

Please sign in to comment.