📈 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
fix: Parse integer for importId var
Blue Mouse1811e8f84065
diff --git a/backend/apps/cloud/src/data-import/data-import.controller.ts b/backend/apps/cloud/src/data-import/data-import.controller.tsindex 74e353cb7..52a9d26db 100644--- a/backend/apps/cloud/src/data-import/data-import.controller.ts+++ b/backend/apps/cloud/src/data-import/data-import.controller.ts@@ -8,6 +8,7 @@ import {Get,Delete,Param,+ ParseIntPipe,Body,UseGuards,UseInterceptors,@@ -183,7 +184,7 @@ export class DataImportController {@ApiBearerAuth()async getOne(@Param('projectId') projectId: string,- @Param('importId') importId: number,+ @Param('importId', ParseIntPipe) importId: number,@CurrentUserId() uid: string,) {const project = await this.projectService.getFullProject(projectId)@@ -196,7 +197,7 @@ export class DataImportController {@ApiBearerAuth()async deleteImport(@Param('projectId') projectId: string,- @Param('importId') importId: number,+ @Param('importId', ParseIntPipe) importId: number,@CurrentUserId() uid: string,) {const project = await this.projectService.getFullProject(projectId)diff --git a/backend/apps/community/src/data-import/data-import.controller.ts b/backend/apps/community/src/data-import/data-import.controller.tsindex 009634af3..7e08ba784 100644--- a/backend/apps/community/src/data-import/data-import.controller.ts+++ b/backend/apps/community/src/data-import/data-import.controller.ts@@ -8,6 +8,7 @@ import {Get,Delete,Param,+ ParseIntPipe,Body,UseInterceptors,UploadedFile,@@ -175,7 +176,7 @@ export class DataImportController {@Auth()async getOne(@Param('projectId') projectId: string,- @Param('importId') importId: number,+ @Param('importId', ParseIntPipe) importId: number,@CurrentUserId() uid: string,) {const project = await this.projectService.getFullProject(projectId)@@ -187,7 +188,7 @@ export class DataImportController {@Auth()async deleteImport(@Param('projectId') projectId: string,- @Param('importId') importId: number,+ @Param('importId', ParseIntPipe) importId: number,@CurrentUserId() uid: string,) {const project = await this.projectService.getFullProject(projectId)