Skip to content

Commit ed380d2

Browse files
committed
fix: a warning by codeQL(github workflow)
1 parent c6cf0bd commit ed380d2

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

‎backend/utils/connection.manager.js‎

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,8 @@ async function getConnection(projectId) {
4040
});
4141

4242
connection.on("error", (err) => {
43-
console.error(`❌ Connection error [${projectId}]:`, err);
44-
registry.delete(key);
45-
});
46-
47-
connection.on("close", () => {
48-
registry.delete(key);
49-
console.log(`🔌 Connection closed: ${key}`);
50-
registry.delete(key);
43+
console.error("❌ Connection error [%s]:", projectId, err);
44+
registry.delete(key);
5145
});
5246

5347
connection.on("close", () => {

0 commit comments

Comments
 (0)