Skip to content

Commit

Permalink
sqlite: fix time parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
n8maninger committed Sep 28, 2023
1 parent f455b6a commit f28677e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions persist/sqlite/contracts.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ WHERE date_created <= $1
ORDER BY date_created DESC
LIMIT 1`

row := tx.QueryRow(query, timestamp)
row := tx.QueryRow(query, sqlTime(timestamp))
state, err := scanContractState(row)
return state, err
}
Expand All @@ -46,7 +46,7 @@ FROM hourly_contract_stats
WHERE date_created BETWEEN $1 AND $2
ORDER BY date_created ASC`

rows, err := tx.Query(query, start, end)
rows, err := tx.Query(query, sqlTime(start), sqlTime(end))
if err != nil {
return err
}
Expand Down

0 comments on commit f28677e

Please sign in to comment.