From 9aacd5cddbb2b641ffd36bfa418fba11dc4144e9 Mon Sep 17 00:00:00 2001 From: egelhaus <156946629+egelhaus@users.noreply.github.com> Date: Mon, 28 Apr 2025 13:11:42 +0200 Subject: [PATCH] Update app.module.ts --- apps/backend/src/app.module.ts | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/apps/backend/src/app.module.ts b/apps/backend/src/app.module.ts index cce57dcb..a8000b3e 100644 --- a/apps/backend/src/app.module.ts +++ b/apps/backend/src/app.module.ts @@ -25,7 +25,7 @@ import { McpModule } from '@gitroom/backend/mcp/mcp.module'; ThrottlerModule.forRoot([ { ttl: 3600000, - limit: process.env.API_LIMIT || 30, + limit: process.env.API_LIMIT ? Number(process.env.API_LIMIT) : 30, }, ]), ], @@ -40,8 +40,15 @@ import { McpModule } from '@gitroom/backend/mcp/mcp.module'; useClass: PoliciesGuard, }, ], - get exports() { - return [...this.imports]; - }, + exports: [ + BullMqModule, + DatabaseModule, + ApiModule, + PluginModule, + PublicApiModule, + AgentModule, + McpModule, + ThrottlerModule, + ], }) export class AppModule {}