Skip to content

Commit

Permalink
fix: updateSettings body not decorated properly
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-trajanovski committed Mar 27, 2023
1 parent fc97bd4 commit 9947dec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/users/users.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import {
UseInterceptors,
Put,
UnauthorizedException,
Body,
} from "@nestjs/common";
import { ApiBearerAuth, ApiBody, ApiTags } from "@nestjs/swagger";
import { Action } from "src/casl/action.enum";
Expand Down Expand Up @@ -105,7 +106,7 @@ export class UsersController {
@Put("/:id/settings")
async updateSettings(
@Param("id") userId: string,
updateUserSettingsDto: UpdateUserSettingsDto,
@Body() updateUserSettingsDto: UpdateUserSettingsDto,
): Promise<UserSettings | null> {
return this.usersService.findOneAndUpdateUserSettings(
userId,
Expand Down

0 comments on commit 9947dec

Please sign in to comment.