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 AI predict optional auth

Blue Mouse57db826437c9
diff --git a/apps/production/src/project/project.controller.ts b/apps/production/src/project/project.controller.ts
index 5db39ee57..11e4c9fce 100644
--- a/apps/production/src/project/project.controller.ts
+++ b/apps/production/src/project/project.controller.ts
@@ -2125,8 +2125,7 @@ export class ProjectController {
@ApiBearerAuth()
@HttpCode(HttpStatus.OK)
@Get(':projectId/predict')
- @UseGuards(JwtAccessTokenGuard, RolesGuard)
- @Roles(UserType.CUSTOMER, UserType.ADMIN)
+ @Auth([], true, true)
async getAiPrediction(
@Param() params: ProjectIdDto,
@Query() query: TimeFrameQueryEnumDTO,