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 project id validation for selfhosted

Blue Mouse8646c15ff919
diff --git a/src/project/project.service.ts b/src/project/project.service.ts
index 63da1329a..240a7a4b8 100644
--- a/src/project/project.service.ts
+++ b/src/project/project.service.ts
@@ -102,8 +102,8 @@ export class ProjectService {
}
}
- async checkIfIDUniqueClickhouse(projects: Array<object>, projectID: string): Promise<void> {
- if (!_find(projects, ({ id }) => id === projectID)) {
+ checkIfIDUniqueClickhouse(projects: Array<object>, projectID: string): void {
+ if (_find(projects, ({ id }) => id === projectID)) {
throw new BadRequestException('Selected project ID is already in use')
}
}