mirror of
https://github.com/turt2live/matrix-dimension.git
synced 2024-09-18 14:56:03 +00:00
Appease the linter
This commit is contained in:
parent
009b510779
commit
7bfbf626b2
@ -91,19 +91,19 @@ export class NebStore {
|
|||||||
};
|
};
|
||||||
|
|
||||||
public static async listSimpleBots(requestingUserId: string): Promise<SimpleBot[]> {
|
public static async listSimpleBots(requestingUserId: string): Promise<SimpleBot[]> {
|
||||||
const configs = await NebStore.getAllConfigs();
|
const nebConfigs = await NebStore.getAllConfigs();
|
||||||
const integrations: { integration: NebIntegration, userId: string }[] = [];
|
const integrations: { integration: NebIntegration, userId: string }[] = [];
|
||||||
const hasTypes: string[] = [];
|
const hasTypes: string[] = [];
|
||||||
|
|
||||||
for (const config of configs) {
|
for (const neb of nebConfigs) {
|
||||||
for (const integration of config.dbIntegrations) {
|
for (const integration of neb.dbIntegrations) {
|
||||||
if (!integration.isEnabled) continue;
|
if (!integration.isEnabled) continue;
|
||||||
|
|
||||||
const metadata = NebStore.INTEGRATIONS[integration.type];
|
const metadata = NebStore.INTEGRATIONS[integration.type];
|
||||||
if (!metadata || !metadata.simple) continue;
|
if (!metadata || !metadata.simple) continue;
|
||||||
if (hasTypes.indexOf(integration.type) !== -1) continue;
|
if (hasTypes.indexOf(integration.type) !== -1) continue;
|
||||||
|
|
||||||
const proxy = new NebProxy(config, requestingUserId);
|
const proxy = new NebProxy(neb, requestingUserId);
|
||||||
integrations.push({
|
integrations.push({
|
||||||
integration: integration,
|
integration: integration,
|
||||||
userId: await proxy.getBotUserId(integration),
|
userId: await proxy.getBotUserId(integration),
|
||||||
|
Loading…
Reference in New Issue
Block a user