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!

fixed bug when analytics was not accepted after updating project

Blue Mouse472a58e8b341
diff --git a/src/project/project.controller.ts b/src/project/project.controller.ts
index 416634a2a..6e9b8b9b4 100644
--- a/src/project/project.controller.ts
+++ b/src/project/project.controller.ts
@@ -113,7 +113,7 @@ export class ProjectController {
this.logger.log({ projectDTO, userId, id }, 'PUT /project/:id')
this.projectService.validateProject(projectDTO)
- let project = await this.projectService.findOneWithRelations(id)
+ const project = await this.projectService.findOneWithRelations(id)
if (_isEmpty(project)) {
throw new NotFoundException()
@@ -126,7 +126,6 @@ export class ProjectController {
await this.projectService.allowedToManage(project, userId)
await this.projectService.update(id, project)
- project = await this.projectService.findOne(id)
const key = getRedisProjectKey(id)
try {