Skip to content

Commit

Permalink
feat : figmaRepository JPA 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
cowboysj committed Nov 13, 2024
1 parent 0a7580b commit e97703a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public List<FigmaAccountResponse> getFigmaAccount() {
public void deleteFigmaAccount(Long figmaId) {
Figma figma =
figmaRepository
.findByIdAndDeletedAtIsNull(figmaId)
.findByFigmaIdAndDeletedAtIsNull(figmaId)
.orElseThrow(() -> new CustomException(ErrorCode.FIGMA_ACCOUNT_NOT_FOUND));
figma.deleteFigmaAccount();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public interface FigmaRepository extends JpaRepository<Figma, Long> {

List<Figma> findByMemberAndDeletedAtIsNull(Member member);

Optional<Figma> findByIdAndDeletedAtIsNull(Long figmaId);
Optional<Figma> findByFigmaIdAndDeletedAtIsNull(Long figmaId);

Optional<Figma> findByFigmaUserId(String figmaUserId);
}

0 comments on commit e97703a

Please sign in to comment.