Skip to content

Commit

Permalink
fix(query): don't blindly look into state file
Browse files Browse the repository at this point in the history
  • Loading branch information
aybabtme committed Oct 29, 2024
1 parent 316884a commit 93fd84c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cmd/humanlog/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -326,8 +326,12 @@ func queryApiWatchCmd(
loginfo("to=%s", to)
loginfo("query=%s", query)

var accountID int64
if state.CurrentAccountID != nil {
accountID = *state.CurrentAccountID
}
req := &queryv1.WatchQueryRequest{
AccountId: *state.CurrentAccountID,
AccountId: accountID,
Query: &typesv1.LogQuery{
From: from,
To: to,
Expand Down

0 comments on commit 93fd84c

Please sign in to comment.