Skip to content

Commit

Permalink
fix: add apibody
Browse files Browse the repository at this point in the history
  • Loading branch information
ttiimmothy committed Nov 14, 2023
1 parent c987dc5 commit 52337fc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/userRelated/user/user.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { UserService } from './user.service';
import { CreateUserDto } from './dto/create-user.dto';
import { UpdateUserDto } from './dto/update-user.dto';
import { User } from './interfaces/user.interface';
import { ApiBody, ApiTags } from '@nestjs/swagger';
import { ApiTags } from '@nestjs/swagger';

@ApiTags('user')
@Controller('api/user')
Expand All @@ -30,7 +30,6 @@ export class UserController {
}

@Post()
@ApiBody({ type: CreateUserDto })
async createUser(@Body() createUserDto: CreateUserDto) {
return (await this.userService.createUser(createUserDto))[0];
}
Expand Down

0 comments on commit 52337fc

Please sign in to comment.