Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

Fix circular dependency issue

Blue Mouse5189e923228a
diff --git a/backend/apps/cloud/src/goal/goal.module.ts b/backend/apps/cloud/src/goal/goal.module.ts
index dfa7db545..93c86f670 100644
--- a/backend/apps/cloud/src/goal/goal.module.ts
+++ b/backend/apps/cloud/src/goal/goal.module.ts
@@ -1,4 +1,4 @@
-import { Module } from '@nestjs/common'
+import { Module, forwardRef } from '@nestjs/common'
import { TypeOrmModule } from '@nestjs/typeorm'
import { ProjectModule } from '../project/project.module'
@@ -15,7 +15,7 @@ import { GoalController } from './goal.controller'
ProjectModule,
AppLoggerModule,
UserModule,
- AnalyticsModule,
+ forwardRef(() => AnalyticsModule),
],
providers: [GoalService],
exports: [GoalService],