📈 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
Remove obsolete user theme
Blue Mouseaafdbf6c820d
diff --git a/backend/apps/cloud/src/auth/guards/authentication.guard.ts b/backend/apps/cloud/src/auth/guards/authentication.guard.tsindex d2cce43e1..f43468c54 100644--- a/backend/apps/cloud/src/auth/guards/authentication.guard.ts+++ b/backend/apps/cloud/src/auth/guards/authentication.guard.ts@@ -40,8 +40,6 @@ export class AuthenticationGuard implements CanActivate {try {const decoded: any = verify(token, JWT_ACCESS_TOKEN_SECRET)- console.log('AuthenticationGuard decoded', decoded)-// If the token is not decoded, it means it's invalidif (!decoded) {return falsediff --git a/backend/apps/cloud/src/common/templates/en/gdpr_data_export.html b/backend/apps/cloud/src/common/templates/en/gdpr_data_export.htmlindex b4a2da2bf..f95c896af 100644--- a/backend/apps/cloud/src/common/templates/en/gdpr_data_export.html+++ b/backend/apps/cloud/src/common/templates/en/gdpr_data_export.html@@ -81,8 +81,6 @@ Is Telegram Chat ID confirmed: {{#if user.isTelegramChatIdConfirmed}} Yes {{else<br />Telegram Chat ID: {{user.telegramChatId}}<br />-Theme: {{user.theme}}-<br />Nickname: {{user.nickname}}<br />diff --git a/backend/apps/cloud/src/user/entities/user.entity.ts b/backend/apps/cloud/src/user/entities/user.entity.tsindex 370298636..4d5c86f9b 100644--- a/backend/apps/cloud/src/user/entities/user.entity.ts+++ b/backend/apps/cloud/src/user/entities/user.entity.ts@@ -195,11 +195,6 @@ export enum BillingFrequency {Yearly = 'yearly',}-export enum Theme {- classic = 'classic',- christmas = 'christmas',-}-export enum TimeFormat {'12-hour' = '12-hour','24-hour' = '24-hour',@@ -299,9 +294,6 @@ export class User {@Column('varchar', { length: 30, nullable: true })twoFactorRecoveryCode: string- @Column('varchar', { length: 50, default: Theme.classic })- theme: Theme-@Column('int', { default: 50 })maxProjects: numberdiff --git a/backend/apps/cloud/src/user/user.controller.ts b/backend/apps/cloud/src/user/user.controller.tsindex 91b642f8f..5eb0044b6 100644--- a/backend/apps/cloud/src/user/user.controller.ts+++ b/backend/apps/cloud/src/user/user.controller.ts@@ -43,7 +43,6 @@ import {User,MAX_EMAIL_REQUESTS,PlanCode,- Theme,FeatureFlag,OnboardingStep,} from './entities/user.entity'@@ -119,15 +118,6 @@ export class UserController {}}- @ApiBearerAuth()- @Put('/theme')- async setTheme(- @CurrentUserId() userId: string,- @Body('theme') theme: Theme,- ): Promise<User> {- return this.userService.update(userId, { theme })- }-@ApiBearerAuth()@Put('/feature-flags')async setFeatureFlags(diff --git a/backend/migrations/mysql/2025_10_12.sql b/backend/migrations/mysql/2025_10_12.sqlindex ade72515e..21f78f571 100644--- a/backend/migrations/mysql/2025_10_12.sql+++ b/backend/migrations/mysql/2025_10_12.sql@@ -1 +1,2 @@alter table user drop column roles;+alter table user drop column theme;diff --git a/web/app/lib/models/User.ts b/web/app/lib/models/User.tsindex ddb9c2f74..370a80ec4 100644--- a/web/app/lib/models/User.ts+++ b/web/app/lib/models/User.ts@@ -38,7 +38,6 @@ enum OnboardingStep {export interface User {id: string- roles: string[]planCode: PlanCodefeatureFlags: FeatureFlag[]nickname: string@@ -55,7 +54,6 @@ export interface User {subUpdateURL: string | nullsubCancelURL: string | nulltimezone: string- theme: string | nullisTwoFactorAuthenticationEnabled: booleantrialReminderSent: booleanbillingFrequency: string | null