Skip to content

Commit c56bf8e

Browse files
authored
Merge pull request #159 from JA-yeong-eop-JA-moeu-JA/refactor/#158-team-notify
♻️ refactor: 팀 매칭 알림 시, productId도 전송하도록 수정
2 parents b17c40f + ff925bb commit c56bf8e

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/main/java/com/jajaja/domain/team/service/TeamCommonServiceImpl.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ public void joinTeam(Member member, Member leader, Team team) {
4848

4949
Map<String, Object> data = new HashMap<>();
5050
if (teamOrderId != null) data.put("orderId", teamOrderId);
51+
data.put("productId", product.getId());
5152
data.put("productName", product.getName());
5253
data.put("productImage", product.getThumbnailUrl());
5354
data.put("isTeamMatched", true);

src/main/java/com/jajaja/global/scheduler/TeamExpireScheduler.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ public void expireTeams() {
5555

5656
Map<String, Object> data = new HashMap<>();
5757
if (teamOrderId != null) data.put("orderId", teamOrderId);
58+
data.put("productId", product.getId());
5859
data.put("productName", product.getName());
5960
data.put("productImage", product.getThumbnailUrl());
6061
data.put("isTeamMatched", false);

0 commit comments

Comments
 (0)