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!

fix:delete

kruzhambusdbaeb761a682
diff --git a/src/project/project.controller.ts b/src/project/project.controller.ts
index 49078afc8..4dd6aa388 100644
--- a/src/project/project.controller.ts
+++ b/src/project/project.controller.ts
@@ -733,7 +733,7 @@ export class ProjectController {
this.projectService.allowedToManage(project, uid, user.roles)
- if (!project.isAnalyticsProject) {
+ if (project.isAnalyticsProject && project.isCaptchaProject) {
const query = `ALTER table captcha DELETE WHERE pid='${id}'`
try {
@@ -741,6 +741,7 @@ export class ProjectController {
project.captchaSecretKey = null
project.isCaptchaEnabled = false
+ project.isCaptchaProject = false
await this.projectService.update(id, project)