diff --git a/services/github/pod-github/src/worker.ts b/services/github/pod-github/src/worker.ts index ca15bb32b4..54725d87e8 100644 --- a/services/github/pod-github/src/worker.ts +++ b/services/github/pod-github/src/worker.ts @@ -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 }