Skip to content

Commit

Permalink
REFACTOR: 일괄 지급 서비스명 addBulkCoin으로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
saewoo1 committed Oct 25, 2024
1 parent 412f2c5 commit ab10e97
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 @@ -67,7 +67,7 @@ public void assignItem(List<Long> userIds, Sku sku) {
public void assignCoin(List<Long> userIds, Sku sku, Long amount) {
Item item = itemQueryService.getBySku(sku);
LocalDateTime now = LocalDateTime.now();
userCommandService.addBulkUserCoin(userIds, amount);
userCommandService.addBulkCoin(userIds, amount);
itemHistoryCommandService.createCoinAssignHistory(userIds, item.getId(), now, amount);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public void updateCoinAmount(Long userId, Long reward) {
user.addCoin(reward);
}

public void addBulkUserCoin(List<Long> userIds, Long amount) {
public void addBulkCoin(List<Long> userIds, Long amount) {
userRepository.updateBulkUserCoin(userIds, amount);
}
}

0 comments on commit ab10e97

Please sign in to comment.