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