Skip to content

Commit

Permalink
Merge pull request #17 from DDD-Community/feature/POLABO-108
Browse files Browse the repository at this point in the history
fix(POLABO-108): mvp 2차 개발 2차 수정
  • Loading branch information
dldmsql authored Aug 11, 2024
2 parents f15c1d1 + d28c65c commit a675244
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ class UserDto {
data class CreateReq(
val email: String,
val nickName: String,
val birthDt : LocalDate,
val gender : GenderType
val birthDt : LocalDate?,
val gender : GenderType?
)

data class UpdateReq(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class UserJooqRepositoryImpl(private val dslContext: DSLContext) : UserJooqRepos
DateConverter.convertToKst(LocalDateTime.now()),
1,
request.birthDt,
UserGender.valueOf(request.gender.name)
UserGender.valueOf(request.gender?.name ?: UserGender.NONE.name)
)
.returningResult(jUser.ID)
.fetchOne(0, Long::class.java) ?: 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class SecurityConfig(
it.requestMatchers("/api/v1/boards/create-available").permitAll()
it.requestMatchers("/api/v1/boards/total-count").permitAll()
it.requestMatchers("/api/v1/file/**").permitAll()
it.requestMatchers("/api/v1/oauth/sign-in", "/api/v1/oauth/re-issue", "/api/v1/user/check-exist").permitAll()
it.requestMatchers("/api/v1/oauth/**", "/api/v1/user/check-exist").permitAll()
it.requestMatchers("/health", "/swagger-ui/**", "/v3/api-docs/**").permitAll()
it.requestMatchers("/api/v1/boards/{id}", "/api/v1/polaroids/{id}", "/api/v1/boards/{boardId}/polaroids").permitAll()
it.anyRequest().authenticated()
Expand Down

0 comments on commit a675244

Please sign in to comment.