📈 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!
TypeScript chartsclickhousedockergdprgoogle-analyticsmetricsmonitoringmysqlnestjsprivacyredisself-hostedselfhostedstatisticstailwindcssweb-analyticswebanalyticswebsite
lint:fix
Blue Mouse84df7d31a317
diff --git a/apps/production/src/project/project.controller.ts b/apps/production/src/project/project.controller.tsindex 5ad5e5068..bffcc056c 100644--- a/apps/production/src/project/project.controller.ts+++ b/apps/production/src/project/project.controller.ts@@ -611,7 +611,7 @@ export class ProjectController {async resetFilters(@Param('pid') pid: string,@Query('type') type: string,- @Query('filters') filter: string,+ @Query('filters') rawFilters: string,@CurrentUserId() uid: string,): Promise<void> {this.logger.log({ pid }, 'DELETE /reset-filters/:pid')@@ -630,7 +630,7 @@ export class ProjectController {throw new NotFoundException('Project not found')}- const filters = JSON.parse(filter)+ const filters = JSON.parse(rawFilters)this.projectService.allowedToManage(project, uid)diff --git a/apps/production/src/project/project.service.ts b/apps/production/src/project/project.service.tsindex b37731347..c812a5031 100644--- a/apps/production/src/project/project.service.ts+++ b/apps/production/src/project/project.service.ts@@ -522,13 +522,16 @@ export class ProjectService {type: string,filter: string,): Promise<void> {- const query = `DELETE FROM analytics WHERE pid={pid:FixedString(12)} AND {type:String}={filter:String};`+ const query = `DELETE FROM analytics WHERE pid={pid:FixedString(12)} AND {type:String}={filter:String};`const params = {- pid, type, filter,+ pid,+ type,+ filter,}await clickhouse.query(query, { params }).toPromise()}+async removeDataFromClickhouse(pid: string,from: string,