We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ba62135 commit 3b2d129Copy full SHA for 3b2d129
core/src/adapters/postgres.ts
@@ -350,14 +350,14 @@ export class PostgresDatabaseAdapter extends DatabaseAdapter {
350
351
if (params.start) {
352
paramCount++;
353
- sql += ` AND "createdAt" >= to_timestamp($${paramCount / 1000})`;
354
- values.push(params.start);
+ sql += ` AND "createdAt" >= to_timestamp($${paramCount})`;
+ values.push(params.start/1000);
355
}
356
357
if (params.end) {
358
359
- sql += ` AND "createdAt" <= to_timestamp($${paramCount / 1000})`;
360
- values.push(params.end);
+ sql += ` AND "createdAt" <= to_timestamp($${paramCount})`;
+ values.push(params.end/1000);
361
362
363
if (params.unique) {
0 commit comments