Skip to content

Commit

Permalink
Merge pull request #125 from nar0ng/develop
Browse files Browse the repository at this point in the history
🔨 Fix: ActivityLogDelete API fix
  • Loading branch information
nar0ng authored Aug 21, 2024
2 parents 30d0a86 + b1954a6 commit 5274dbe
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 71 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public ActivityLogDTO updateActivityLog(Long activityLogId, ActivityLogDTO updat

@Transactional
public void deleteActivityLog(Long activityLogId, Long memberId) {
ActivityLog existingActivityLog = activityLogRepository.findByMemberIdAndId(activityLogId, memberId)
ActivityLog existingActivityLog = activityLogRepository.findById(activityLogId)
.orElseThrow(() -> new NoSuchElementException("ActivityLog not found with ID: " + activityLogId));
activityLogRepository.delete(existingActivityLog);
}
Expand Down
32 changes: 0 additions & 32 deletions src/main/resources/logback-spring.xml

This file was deleted.

38 changes: 0 additions & 38 deletions src/main/resources/logback-test.xml

This file was deleted.

0 comments on commit 5274dbe

Please sign in to comment.