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!

fixed user problems

Blue Mousef1268ac35a9e
diff --git a/src/user/user.controller.ts b/src/user/user.controller.ts
index 3543bc7b3..2c2191ad2 100644
--- a/src/user/user.controller.ts
+++ b/src/user/user.controller.ts
@@ -156,7 +156,7 @@ export class UserController {
@UseGuards(JwtAccessTokenGuard, RolesGuard)
@UseGuards(SelfhostedGuard)
@Roles(UserType.ADMIN)
- async create(@Body() userDTO: UserProfileDTO): Promise<User> {
+ async create(@Body() userDTO: UserProfileDTO): Promise<User | null> {
this.logger.log({ userDTO }, 'POST /user')
this.userService.validatePassword(userDTO.password)
userDTO.password = await this.authService.hashPassword(userDTO.password)
@@ -171,6 +171,8 @@ export class UserController {
}
}
}
+
+ return null
}
@Post('/api-key')