Skip to content

Commit 9aacd5c

Browse files
authored
Update app.module.ts
1 parent dbe8168 commit 9aacd5c

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

apps/backend/src/app.module.ts

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import { McpModule } from '@gitroom/backend/mcp/mcp.module';
2525
ThrottlerModule.forRoot([
2626
{
2727
ttl: 3600000,
28-
limit: process.env.API_LIMIT || 30,
28+
limit: process.env.API_LIMIT ? Number(process.env.API_LIMIT) : 30,
2929
},
3030
]),
3131
],
@@ -40,8 +40,15 @@ import { McpModule } from '@gitroom/backend/mcp/mcp.module';
4040
useClass: PoliciesGuard,
4141
},
4242
],
43-
get exports() {
44-
return [...this.imports];
45-
},
43+
exports: [
44+
BullMqModule,
45+
DatabaseModule,
46+
ApiModule,
47+
PluginModule,
48+
PublicApiModule,
49+
AgentModule,
50+
McpModule,
51+
ThrottlerModule,
52+
],
4653
})
4754
export class AppModule {}

0 commit comments

Comments
 (0)