Invalid `prisma.queryRaw()` invocation: Your...
# prisma-client
m
Invalid
prisma.queryRaw()
invocation: Your raw query had an incorrect number of parameters. Expected:
0
, actual:
1
. What am I doing wrong here?
I guess this is the way to do it?
Copy code
const 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