📈 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
got rid of if/else
Blue Mouse73d467734230
diff --git a/src/project/project.controller.ts b/src/project/project.controller.tsindex b33b40cb9..0d34842e3 100644--- a/src/project/project.controller.ts+++ b/src/project/project.controller.ts@@ -107,11 +107,8 @@ export class ProjectController {const where = Object()where.admin = userId- if (isCaptcha) {- where.isCaptchaProject = true- } else {- where.isAnalyticsProject = true- }+ where.isCaptchaProject = isCaptcha+ where.isAnalyticsProject = !isCaptchaconst paginated = await this.projectService.paginate({ take, skip },