Skip to content

Commit de5ad25

Browse files
committed
feat: dto 변경
1 parent ca1b710 commit de5ad25

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

tuk-batch/src/main/kotlin/nexters/tuk/domain/push/PushDto.kt

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,7 @@ import nexters.tuk.contract.push.PushType
44

55
class PushDto {
66
data class Push(
7-
val recipients: List<PushRecipient>,
87
val pushType: PushType = PushType.GATHERING_NOTIFICATION,
8+
val gatheringId: Long,
99
)
10-
}
11-
12-
data class PushRecipient(
13-
val memberId: Long,
14-
)
10+
}

tuk-batch/src/main/kotlin/nexters/tuk/job/GatheringPushCheckJob.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class GatheringPushCheckJob(
4242
if (nextNotificationTime <= LocalDateTime.now()) {
4343
pushApiClient.sendPushNotification(
4444
PushDto.Push(
45-
recipients = gathering.memberIds.map { PushRecipient(it) },
45+
gatheringId = gathering.id,
4646
pushType = PushType.GATHERING_NOTIFICATION
4747
)
4848
)

0 commit comments

Comments
 (0)