diff --git a/src/db/NebStore.ts b/src/db/NebStore.ts index f782d6f..4075dc3 100644 --- a/src/db/NebStore.ts +++ b/src/db/NebStore.ts @@ -91,19 +91,19 @@ export class NebStore { }; public static async listSimpleBots(requestingUserId: string): Promise { - const configs = await NebStore.getAllConfigs(); + const nebConfigs = await NebStore.getAllConfigs(); const integrations: { integration: NebIntegration, userId: string }[] = []; const hasTypes: string[] = []; - for (const config of configs) { - for (const integration of config.dbIntegrations) { + for (const neb of nebConfigs) { + for (const integration of neb.dbIntegrations) { if (!integration.isEnabled) continue; const metadata = NebStore.INTEGRATIONS[integration.type]; if (!metadata || !metadata.simple) continue; if (hasTypes.indexOf(integration.type) !== -1) continue; - const proxy = new NebProxy(config, requestingUserId); + const proxy = new NebProxy(neb, requestingUserId); integrations.push({ integration: integration, userId: await proxy.getBotUserId(integration),