diff --git a/jobis-application/src/main/java/team/retum/jobis/domain/company/dto/CompanyFilter.java b/jobis-application/src/main/java/team/retum/jobis/domain/company/dto/CompanyFilter.java index 7c57ce125..ba753b74e 100644 --- a/jobis-application/src/main/java/team/retum/jobis/domain/company/dto/CompanyFilter.java +++ b/jobis-application/src/main/java/team/retum/jobis/domain/company/dto/CompanyFilter.java @@ -15,7 +15,7 @@ public class CompanyFilter { private final Integer year; private final Long page; @Builder.Default - private int limit = 11; + private int limit = 10; public Long getOffset() { return page * limit; diff --git a/jobis-application/src/main/java/team/retum/jobis/domain/student/usecase/UpdateStudentForgottenPasswordUseCase.java b/jobis-application/src/main/java/team/retum/jobis/domain/student/usecase/UpdateStudentForgottenPasswordUseCase.java index fef4e82ed..ab389cf13 100644 --- a/jobis-application/src/main/java/team/retum/jobis/domain/student/usecase/UpdateStudentForgottenPasswordUseCase.java +++ b/jobis-application/src/main/java/team/retum/jobis/domain/student/usecase/UpdateStudentForgottenPasswordUseCase.java @@ -8,6 +8,7 @@ import team.retum.jobis.domain.student.dto.UpdateForgottenPasswordRequest; import team.retum.jobis.domain.user.exception.UserNotFoundException; import team.retum.jobis.domain.user.model.User; +import team.retum.jobis.domain.user.spi.CommandUserPort; import team.retum.jobis.domain.user.spi.QueryUserPort; @RequiredArgsConstructor @@ -17,6 +18,7 @@ public class UpdateStudentForgottenPasswordUseCase { private final QueryUserPort queryUserPort; private final QueryAuthCodePort queryAuthCodePort; private final SecurityPort securityPort; + private final CommandUserPort commandUserPort; public void execute(UpdateForgottenPasswordRequest request) { if (!queryUserPort.existsUserByAccountId(request.getEmail())) { @@ -29,6 +31,8 @@ public void execute(UpdateForgottenPasswordRequest request) { User userEntity = queryUserPort.queryUserByAccountId(request.getEmail()) .orElseThrow(() -> UserNotFoundException.EXCEPTION); - userEntity.updatePassword(securityPort.encodePassword(request.getPassword())); + commandUserPort.saveUser( + userEntity.updatePassword(securityPort.encodePassword(request.getPassword())) + ); } }