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!

some improvments

kruzhambus2620a609ddbd
diff --git a/apps/production/src/analytics/analytics.controller.ts b/apps/production/src/analytics/analytics.controller.ts
index 61769b922..11b8e7a13 100644
--- a/apps/production/src/analytics/analytics.controller.ts
+++ b/apps/production/src/analytics/analytics.controller.ts
@@ -694,13 +694,14 @@ export class AnalyticsController {
async getHeartBeatStats(
@Query() data,
@CurrentUserId() uid: string,
+ @Headers() body: ProjectPasswordDto,
): Promise<object> {
const { pids, pid } = data
const pidsArray = getPIDsArray(pids, pid)
const validationPromises = _map(pidsArray, async currentPID => {
this.analyticsService.validatePID(currentPID)
- await this.analyticsService.checkProjectAccess(currentPID, uid)
+ await this.analyticsService.checkProjectAccess(currentPID, uid, body.password)
})
await Promise.all(validationPromises)