We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca1b710 commit de5ad25Copy full SHA for de5ad25
tuk-batch/src/main/kotlin/nexters/tuk/domain/push/PushDto.kt
@@ -4,11 +4,7 @@ import nexters.tuk.contract.push.PushType
4
5
class PushDto {
6
data class Push(
7
- val recipients: List<PushRecipient>,
8
val pushType: PushType = PushType.GATHERING_NOTIFICATION,
+ val gatheringId: Long,
9
)
10
-}
11
-
12
-data class PushRecipient(
13
- val memberId: Long,
14
-)
+}
tuk-batch/src/main/kotlin/nexters/tuk/job/GatheringPushCheckJob.kt
@@ -42,7 +42,7 @@ class GatheringPushCheckJob(
42
if (nextNotificationTime <= LocalDateTime.now()) {
43
pushApiClient.sendPushNotification(
44
PushDto.Push(
45
- recipients = gathering.memberIds.map { PushRecipient(it) },
+ gatheringId = gathering.id,
46
pushType = PushType.GATHERING_NOTIFICATION
47
48
0 commit comments