Skip to content

Commit

Permalink
๐Ÿž BugFix/#119 - deleteById -> deleteByEventId ์˜คํƒ€ ์ˆ˜์ • (#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
dongkyeomjang authored Nov 23, 2024
1 parent b1c848f commit e8ccd5f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,6 @@
@Repository
public interface ScheduledEventJobRepository extends CrudRepository<ScheduledEventJob, String> {
@NotNull List<ScheduledEventJob> findAll();

void deleteByEventId(Long eventId);
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public void execute(JobExecutionContext context) throws JobExecutionException {
Long eventId = context.getJobDetail().getJobDataMap().getLong("eventId");

// eventId๋ฅผ ํ†ตํ•ด ScheduledEventJob์„ ์‚ญ์ œ
scheduledEventJobRepository.deleteById(eventId.toString());
scheduledEventJobRepository.deleteByEventId(eventId);
log.info("ScheduledEventJob ์‚ญ์ œ ์™„๋ฃŒ. eventId: {}", eventId);

processCompletedEventUseCase.execute(eventId);
Expand Down

0 comments on commit e8ccd5f

Please sign in to comment.