chore: add logs on sadhna API

This commit is contained in:
Krispire Admin
2026-06-09 12:10:45 +05:30
parent 0d189739d6
commit 0188a34cf6
2 changed files with 14 additions and 3 deletions
+1 -1
View File
@@ -254,7 +254,7 @@ func (r *PostRepo) PostCountsByDate(ctx context.Context, userID string, since ti
tz = "UTC"
}
rows, err := r.pg.Pool.Query(ctx, `
SELECT (created_at AT TIME ZONE $3)::date AS d, count(*) AS n
SELECT (created_at AT TIME ZONE $3::text)::date AS d, count(*) AS n
FROM posts
WHERE user_id = $1 AND created_at >= $2
GROUP BY d`,