File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
src/main/kotlin/com/wafflestudio/internhasha Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -220,6 +220,12 @@ class AuthService(
220220
221221 // Email verification
222222 fun sendSnuMailVerification (request : SnuMailRequest ) {
223+ if (userRepository.existsByEmail(request.snuMail)) {
224+ throw UserDuplicateSnuMailException (
225+ details = mapOf (" email" to request.snuMail),
226+ )
227+ }
228+
223229 val emailCode = (100000 .. 999999 ).random().toString()
224230 val encryptedEmailCode = BCrypt .hashpw(emailCode, BCrypt .gensalt())
225231
Original file line number Diff line number Diff line change @@ -177,8 +177,8 @@ class PositionSpecification {
177177 orderList.add(criteriaBuilder.desc(closedSort)) // 마감된 건 내림차순
178178 }
179179 else -> {
180- // 최신순 정렬 (updatedAt 기준)
181- orderList.add(criteriaBuilder.desc (root.get<LocalDateTime >(" updatedAt " )))
180+ // 공고 생성순 정렬 (createdAt 기준)
181+ orderList.add(criteriaBuilder.asc (root.get<LocalDateTime >(" createdAt " )))
182182 }
183183 }
184184
You can’t perform that action at this time.
0 commit comments