Skip to content

Commit

Permalink
Add update method return type
Browse files Browse the repository at this point in the history
  • Loading branch information
esteban-gs committed Nov 7, 2023
1 parent 986aa88 commit c163ce3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/acccount-manager/account-manager.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ export class AccountManagerController {
@Request() request: AuthedRequest,
@Param('id') id: number,
@Body() updateUserDto: UpdateUserDto,
) {
): Promise<ReturnUserDto> {
const { user } = request;
if (user.id !== id) {
throw new BadRequestException('You can only update your own user');
Expand Down

0 comments on commit c163ce3

Please sign in to comment.