v4.4.5-2 (#355)
This commit is contained in:
@@ -19,6 +19,7 @@ export const connectPg = async (): Promise<Pool> => {
|
||||
|
||||
global.pgClient.on('error', (err) => {
|
||||
console.log(err);
|
||||
global.pgClient?.end();
|
||||
global.pgClient = null;
|
||||
connectPg();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user