_Zaizen_
_Zaizen_
Explore posts from servers
DTDrizzle Team
Created by _Zaizen_ on 3/28/2024 in #help
Issue with CURRENT_TIMESTAMP bun:sqlite
It launches an error: 66 | return new Date(value * 1e3); 67 | } 68 | return new Date(value); 69 | } 70 | mapToDriverValue(value) { 71 | const unix = value.getTime(); ^ TypeError: value.getTime is not a function. (In 'value.getTime()', 'value.getTime' is undefined) at mapToDriverValue (node_modules\drizzle-orm\sqlite-core\columns\integer.js:71:18) atnode_modules\drizzle-orm\sql\sql.js:118:59 at map (:1:21) at buildQueryFromSourceParams (node_modules\drizzle-orm\sql\sql.js:71:25) at map (:1:21) at buildQueryFromSourceParams (node_modules\drizzle-orm\sql\sql.js:71:25) at map (:1:21) at buildQueryFromSourceParams (node_modules\drizzle-orm\sql\sql.js:71:25) at node_modules\drizzle-orm\sql\sql.js:51:21 at _prepare (node_modules\drizzle-orm\sqlite-core\query-builders\insert.js:125:7) at node_modules\drizzle-orm\sqlite-core\query-builders\insert.js:135:12 at execute (node_modules\drizzle-orm\sqlite-core\query-builders\insert.js:146:19) at then (node_modules\drizzle-orm\query-promise.js:21:12) my drizzle config: /** @type { import("drizzle-kit").Config } */ export default { schema: "./schema.js", out: "./migrations", driver: "libsql", verbose: true, dbCredentials: { url: "file:./db.sqlite", }, };
2 replies