feat: implement automated procurement synchronization and API endpoints for supply chain management
This commit is contained in:
1 parent
6e5bc3bc07
commit
d74cdeb7b3
2 files changed
+7
-2
No files matched your search
@@ -24,6 +24,10 @@ let pgPool = null;
|
||||
async function getMssql() {
|
||||
if (!mssqlPool) {
|
||||
mssqlPool = await sql.connect(mssqlConfig);
|
||||
mssqlPool.on('error', (err) => {
|
||||
console.error('[mssql] Pool error, reconnexion au prochain appel:', err.message);
|
||||
mssqlPool = null;
|
||||
});
|
||||
}
|
||||
return mssqlPool;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user