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 stringified isCaptcha query

Blue Mouse66f08c5772c4
diff --git a/src/project/project.controller.ts b/src/project/project.controller.ts
index 5d6741687..873ee9141 100644
--- a/src/project/project.controller.ts
+++ b/src/project/project.controller.ts
@@ -89,9 +89,10 @@ export class ProjectController {
@CurrentUserId() userId: string,
@Query('take') take: number | undefined,
@Query('skip') skip: number | undefined,
- @Query('isCaptcha') isCaptcha: boolean | undefined,
+ @Query('isCaptcha') isCaptchaStr: string | undefined,
): Promise<Pagination<Project> | Project[] | object> {
this.logger.log({ userId, take, skip }, 'GET /project')
+ const isCaptcha = isCaptchaStr === 'true'
if (isSelfhosted) {
const results = await getProjectsClickhouse()
@@ -119,6 +120,8 @@ export class ProjectController {
const totalMonthlyEvents = await this.projectService.getRedisCount(userId)
+ console.log(where)
+
paginated.results = _map(paginated.results, p => ({
...p,
isOwner: true,