Skip to content

Commit bad722a

Browse files
committed
Yeah
1 parent d22a7ad commit bad722a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/db.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ export async function getSecondsCodedTotal(slackId: string) {
9191
SELECT summary->>'categories' as categories
9292
FROM user_hakatime_daily_summary
9393
JOIN users ON user_id = users.slack_id
94-
WHERE users.slack_id = ${slackId} and date >= ${eventStartDate} and date <= ${eventEndDate};`;
94+
WHERE users.slack_id = ${slackId} and date >= ${eventStartDate.toISOString()} and date <= ${eventEndDate.toISOString()};`;
9595

9696
const total = days.reduce(
9797
(acc: number, { categories }: { categories: string }) => {

0 commit comments

Comments
 (0)