Skip to content

Commit d9ee5e5

Browse files
committed
fix: parse pg bigint type as number
1 parent fc97bc0 commit d9ee5e5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/db.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ import { env } from './env'
1313
import { logger } from './logger'
1414
import { migrations } from './migrations'
1515

16+
pg.types.setTypeParser(20, Number)
17+
1618
export const cacheEntrySchema = z.object({
1719
id: z.string(),
1820
key: z.string(),

0 commit comments

Comments
 (0)