Skip to content

Commit

Permalink
refactor: Remove console.log statements in user controller and user s…
Browse files Browse the repository at this point in the history
…ervice
  • Loading branch information
PleBea committed Jul 13, 2024
1 parent c4de1e0 commit 3824be5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/modules/user/user.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ export class UserController {
})
@ApiUnauthorizedResponse({ description: 'Unauthorized' })
async updateUser(@CurrentUser() user: User, @Body() data: UpdateUserDTO): Promise<ResponseDTO<null>> {
console.log(data);
try {
await this.userService.updateUserById(user.id, data);
return { status: 'success', data: null };
Expand Down
1 change: 0 additions & 1 deletion src/modules/user/user.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ export class UserService {
async updateUserById(id: string, data: Prisma.UserUpdateInput) {
const user = await this.prisma.user.findUnique({ where: { id } });
if (!user) throw new HttpException('User not found', HttpStatus.NOT_FOUND);
console.log(data);

await this.prisma.user.update({
where: { id },
Expand Down

0 comments on commit 3824be5

Please sign in to comment.