Skip to content

Commit

Permalink
Merge pull request #2795 from gobitfly/BIDS-2896/fix-remaining-api-calls
Browse files Browse the repository at this point in the history
(BIDS-2896) frontend: fix wrong montly number of api-calls in user-se…
  • Loading branch information
recy21 authored Jan 2, 2024
2 parents 29f3739 + e850d53 commit ece313e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db/frontend.go
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,7 @@ func GetUserAPIKeyStatistics(apikey *string) (*types.ApiStatistics, error) {
FROM
api_statistics
WHERE
ts > NOW() - INTERVAL '1 month' AND apikey = $1
ts > DATE_TRUNC('month', NOW()) AND apikey = $1
)`

err := FrontendWriterDB.Get(stats, query, apikey)
Expand Down

0 comments on commit ece313e

Please sign in to comment.