You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/jobs.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -43,7 +43,7 @@ export function registerJobs() {
43
43
).then((res)=>res.json());
44
44
45
45
app.logger.info("INSERTING...");
46
-
awaitsql`insert into user_hakatime_daily_summary (user_id, date, summary) values (${user.slack_id}, ${date}, ${summaryRes}) on conflict (user_id, date) do update set summary = excluded.summary;`;
46
+
awaitsql`insert into user_hakatime_daily_summary (user_id, date, summary) values (${user.slack_id}, ${date.toISOString()}, ${summaryRes}) on conflict (user_id, date) do update set summary = excluded.summary;`;
0 commit comments