mirror of
https://github.com/hcengineering/platform.git
synced 2026-08-25 05:42:23 +02:00
Qfix github connection leak (#9942)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
@@ -1793,6 +1793,7 @@ export class GithubWorker implements IntegrationManager {
|
||||
|
||||
const githubEnabled = (await client.findOne(core.class.PluginConfiguration, { pluginId: githubId }))?.enabled
|
||||
if (githubEnabled === false) {
|
||||
await client.close()
|
||||
return undefined
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user