Skip to content

Commit

Permalink
NABI-250--refactor : 잘못된 로직 수정, yml 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
BeommoKoo-dev committed Nov 18, 2023
1 parent e8f9fee commit 7680364
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public CardResponseDTO<CardUpdateResponseDTO> updateCardById(
CardUpdateRequestDTO cardUpdateRequestDTO
) {
Long userId = checkService.parseToken(token);
if (userRepository.existsById(userId)) {
if (!userRepository.existsById(userId)) {
throw new BaseException(ErrorCode.USER_NOT_FOUND);
}

Expand Down
7 changes: 1 addition & 6 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
spring:
profiles:
active: dev

## .sql문을 실행하기 위함

## hibernate ddl 이후 datasource intialize

active: local

springdoc:
version: '@springdoc.version@'
Expand Down

0 comments on commit 7680364

Please sign in to comment.