article update automation #4
|
@ -5,7 +5,7 @@ export class Postgres {
|
||||||
client: pg.PoolClient | null = null;
|
client: pg.PoolClient | null = null;
|
||||||
public static async new(pool: pg.Pool) {
|
public static async new(pool: pg.Pool) {
|
||||||
const pg = new Postgres();
|
const pg = new Postgres();
|
||||||
pg.client = await getConnection().connect();
|
pg.client = await pool.connect();
|
||||||
return pg;
|
return pg;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user