You've already forked agentic-coding-workflow
fix(chat): cast date_trunc to timestamptz, drop interval hack
This commit is contained in:
@@ -27,7 +27,7 @@ GROUP BY model_id
|
||||
ORDER BY cost_usd DESC;
|
||||
|
||||
-- name: SummarizeUsageByDay :many
|
||||
SELECT date_trunc('day', created_at) AS day,
|
||||
SELECT date_trunc('day', created_at)::timestamptz AS day,
|
||||
SUM(prompt_tokens)::int AS prompt_tokens,
|
||||
SUM(completion_tokens)::int AS completion_tokens,
|
||||
SUM(thinking_tokens)::int AS thinking_tokens,
|
||||
@@ -38,7 +38,7 @@ GROUP BY day
|
||||
ORDER BY day;
|
||||
|
||||
-- name: SummarizeUserDaily :many
|
||||
SELECT date_trunc('day', created_at) AS day,
|
||||
SELECT date_trunc('day', created_at)::timestamptz AS day,
|
||||
SUM(prompt_tokens)::int AS prompt_tokens,
|
||||
SUM(completion_tokens)::int AS completion_tokens,
|
||||
SUM(thinking_tokens)::int AS thinking_tokens,
|
||||
|
||||
Reference in New Issue
Block a user