diff --git a/api/resolvers/user.js b/api/resolvers/user.js index 941a789b..e7164395 100644 --- a/api/resolvers/user.js +++ b/api/resolvers/user.js @@ -492,7 +492,7 @@ export default { }, streak: async (user, args, { models }) => { const res = await models.$queryRaw` - SELECT (now_utc() at time zone 'America/Chicago')::date - "startedAt" AS days + SELECT (now() at time zone 'America/Chicago')::date - "startedAt" AS days FROM "Streak" WHERE "userId" = ${user.id} AND "endedAt" IS NULL `