browntiger
browntiger
DTDrizzle Team
Created by browntiger on 12/9/2024 in #help
Drizzle ORM issues
Running into weird issue with ORM where Query: select "id", "name", "email", "emailVerified", "image", "password", "role", "isNewUser", "invalidlogin_attempts", "lockedAt", "isTwoFactorEnabled", "created_at", "updated_at" from "dds_users" "users" where "users"."email" = $1 limit $2 -- params: ["[email protected]", 1] ⨯ TypeError: value.toISOString is not a function at PgTimestamp.mapToDriverValue (C:\MyFiles\Saas\next-progress-saas.next\server\chunks\ssr\5f296_drizzle-orm_pg-core_f7448a..js:1958:22) But NEON works select "id", "name", "email", "emailVerified", "image", "password", "role", "isNewUser", "invalid_login_attempts", "lockedAt", "isTwoFactorEnabled", "created_at", "updated_at" from "dds_users" "users" where "users"."email" = '[email protected]' limit 1 1 0f6f87da-2e4e-461a-9e35-d6dbbb5cec77 BrianT XXX [email protected] $2b$10$WZp3J0vsX8au5pGEw7HDluTDogz8xUOX64MLEuXZX1Ro14k539QF2 User t 0 f 2024-12-09 20:31:39.175528+00 2024-12-09 20:31:39.175528+00
4 replies