Mischa
04/25/2022, 11:19 AMprisma.queryRaw()
invocation:
Your raw query had an incorrect number of parameters. Expected: 0
, actual: 1
.
What am I doing wrong here?Mischa
04/25/2022, 12:36 PMMischa
04/25/2022, 12:39 PMconst dtAfter = Date.now() / 1000 - 3600 * 24 * UNDELIVERED_MAIL_EXPIRE_DAYS // 30 days ago
const whereFilters = sql`"sentAt" IS NULL
AND "createdAt" > to_timestamp(${dtAfter})::timestamp