mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-27 00:17:31 +00:00
4.8.5 perf app ui (#1845)
* list ui and layout * rename token key * app ui * ssr
This commit is contained in:
@@ -22,7 +22,7 @@ export const connectPg = async (): Promise<Pool> => {
|
||||
});
|
||||
|
||||
global.pgClient.on('error', async (err) => {
|
||||
console.log(err);
|
||||
addLog.error(`pg error`, err);
|
||||
global.pgClient?.end();
|
||||
global.pgClient = null;
|
||||
|
||||
@@ -36,6 +36,7 @@ export const connectPg = async (): Promise<Pool> => {
|
||||
console.log('pg connected');
|
||||
return global.pgClient;
|
||||
} catch (error) {
|
||||
addLog.error(`pg connect error`, error);
|
||||
global.pgClient?.end();
|
||||
global.pgClient = null;
|
||||
|
||||
|
Reference in New Issue
Block a user