diff --git a/auditing/meilisearch.go b/auditing/meilisearch.go index ef121f5..edf47ed 100644 --- a/auditing/meilisearch.go +++ b/auditing/meilisearch.go @@ -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) diff --git a/pkg/ssh/ssh.go b/pkg/ssh/ssh.go index 235f790..04017bf 100644 --- a/pkg/ssh/ssh.go +++ b/pkg/ssh/ssh.go @@ -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)