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!

clear cache after assigning

Blue Mouseb11a24c198fc
diff --git a/backend/apps/community/src/auth/auth.service.ts b/backend/apps/community/src/auth/auth.service.ts
index fefb9efbf..d3d97f4f5 100644
--- a/backend/apps/community/src/auth/auth.service.ts
+++ b/backend/apps/community/src/auth/auth.service.ts
@@ -191,8 +191,8 @@ export class AuthService {
// Unassigned projects are only possible when migrating from Swetrix CE v3 to v4, so people who migrated are
// going to create an account anyway, so it's safe to assign them to the user
async assignUnassignedProjectsToUser(userId: string) {
- await this.deleteAllProjectCacheKeys()
await assignUnassignedProjectsToUserClickhouse(userId)
+ await this.deleteAllProjectCacheKeys()
}
public async sendResetPasswordEmail(