📈 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
fix
Maksim Mrug7df31cc0a0ec
diff --git a/src/user/entities/user.entity.ts b/src/user/entities/user.entity.tsindex 62a919f33..c6437296c 100644--- a/src/user/entities/user.entity.ts+++ b/src/user/entities/user.entity.ts@@ -150,8 +150,7 @@ export class User {@Column('varchar', { length: 30, nullable: true })twoFactorRecoveryCode: string- // column for theme christmas and classic- @Column('varchar', { length: 50, default: Theme.classic })+ @Column('varchar', { length: 50, default: Theme.christmas })theme: Theme@Column({ default: false })diff --git a/src/user/user.controller.ts b/src/user/user.controller.tsindex db8131f3c..b44c7ac8c 100644--- a/src/user/user.controller.ts+++ b/src/user/user.controller.ts@@ -85,15 +85,15 @@ export class UserController {}// set theme- @Put('/:id/theme')+ @Put('/theme')@UseGuards(RolesGuard)@UseGuards(SelfhostedGuard)@Roles(UserType.CUSTOMER, UserType.ADMIN)async setTheme(- @Param('id') id: string,+ @CurrentUserId() userId: string,@Body('theme') theme: Theme,): Promise<User> {- return await this.userService.update(id, { theme })+ return await this.userService.update(userId, { theme })}@Get('/search')