Skip to content

Commit

Permalink
fix pg pool type error
Browse files Browse the repository at this point in the history
  • Loading branch information
masfahru committed Jan 10, 2024
1 parent 39f473c commit 8fe19ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/postgres/drizzle.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { drizzle } from 'drizzle-orm/node-postgres';
import { Pool } from 'pg';
import pg from 'pg';
import { postgresConfig } from '../config';
import { eq } from 'drizzle-orm';
import { serial, text, pgTable, timestamp } from 'drizzle-orm/pg-core';
Expand All @@ -21,7 +21,7 @@ if (max) {
Object.assign(config, { max });
}

const pool = new Pool(config);
const pool = new pg.Pool(config);

const db = drizzle(pool);

Expand Down

0 comments on commit 8fe19ad

Please sign in to comment.