Skip to content

Commit

Permalink
[autofix.ci] apply automated fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored Sep 22, 2024
1 parent 4af1471 commit 168fb44
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 13 deletions.
2 changes: 1 addition & 1 deletion backend/src/users/dto/users.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ export class GetAPIVersionResponseDto extends createZodDto(

export class GetMyUserInfoResponseDto extends createZodDto(
getMyUserInfoResponseSchema,
) {}
) {}
9 changes: 6 additions & 3 deletions backend/src/users/schema/users.schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,12 @@ export const getMyUserInfoResponseSchema = z.object({
overDueDay: extendApi(z.coerce.number().describe('현재 연체된 날수'), {
example: 0,
}),
reservations: extendApi(z.array(VUserReservations).describe('해당 유저의 예약 정보'), {
example: [],
}),
reservations: extendApi(
z.array(VUserReservations).describe('해당 유저의 예약 정보'),
{
example: [],
},
),
lendings: extendApi(z.array(lending).describe('해당 유저의 대출 정보'), {
example: [],
}),
Expand Down
12 changes: 7 additions & 5 deletions backend/src/users/users.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export class UsersController {
},
})
async getUsersDeprecated(@Query() getUsersRequestDto: GetUsersRequestDto) {}

@Get()
@ApiOperation({
summary: 'Search users',
Expand Down Expand Up @@ -141,8 +141,10 @@ export class UsersController {
},
},
})
async createUsersDeprecated(@Body() createUsersRequestDto: CreateUsersRequestDto) {}

async createUsersDeprecated(
@Body() createUsersRequestDto: CreateUsersRequestDto,

Check warning on line 145 in backend/src/users/users.controller.ts

View check run for this annotation

Codecov / codecov/patch

backend/src/users/users.controller.ts#L145

Added line #L145 was not covered by tests
) {}

@Post()
@ApiOperation({
summary: 'Create users',
Expand Down Expand Up @@ -188,7 +190,7 @@ export class UsersController {
@Param('id') id: string,
@Body() updateUsersRequestDto: UpdateUsersRequestDto,

Check warning on line 191 in backend/src/users/users.controller.ts

View check run for this annotation

Codecov / codecov/patch

backend/src/users/users.controller.ts#L191

Added line #L191 was not covered by tests
) {}

@Post(':id')
@ApiOperation({
description: '유저 정보를 변경한다.',
Expand Down Expand Up @@ -292,7 +294,7 @@ export class UsersController {
async myUpdateUsersDeprecated(
@Body() myUpddateUsersRequestDto: MyUpddateUsersRequestDto,

Check warning on line 295 in backend/src/users/users.controller.ts

View check run for this annotation

Codecov / codecov/patch

backend/src/users/users.controller.ts#L295

Added line #L295 was not covered by tests
) {}

@Patch('/me')
@ApiOperation({
description: '내 유저정보를 변경한다.',
Expand Down
6 changes: 2 additions & 4 deletions backend/src/users/users.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ import { UsersService } from './users.service';

@Module({
controllers: [UsersController],
providers: [UsersService]
providers: [UsersService],
})
export class UsersModule {

}
export class UsersModule {}

Check warning on line 9 in backend/src/users/users.module.ts

View check run for this annotation

Codecov / codecov/patch

backend/src/users/users.module.ts#L9

Added line #L9 was not covered by tests

0 comments on commit 168fb44

Please sign in to comment.