라이브 취소 푸시 발송 로직 추가
This commit is contained in:
		| @@ -361,29 +361,25 @@ class MemberQueryRepositoryImpl( | ||||
|     } | ||||
|  | ||||
|     override fun getPushTokenFromReservationList(roomId: Long): Map<String, List<List<String>>> { | ||||
|         val query = queryFactory | ||||
|         val where = liveRoom.id.eq(roomId) | ||||
|             .and(liveReservation.isActive.isTrue) | ||||
|  | ||||
|         val aosPushTokens = queryFactory | ||||
|             .select(liveReservation.member.pushToken) | ||||
|             .from(liveReservation) | ||||
|             .innerJoin(liveReservation.room, liveRoom) | ||||
|             .innerJoin(liveReservation.member, member) | ||||
|  | ||||
|         val where = liveRoom.id.eq(roomId) | ||||
|             .and(liveReservation.isActive.isTrue) | ||||
|  | ||||
|         val aosPushTokens = query | ||||
|             .where( | ||||
|                 where | ||||
|                     .and(member.container.eq("aos")) | ||||
|             ) | ||||
|             .where(where.and(member.container.eq("aos"))) | ||||
|             .fetch() | ||||
|             .toSet() | ||||
|             .chunked(500) | ||||
|  | ||||
|         val iosPushTokens = query | ||||
|             .where( | ||||
|                 where | ||||
|                     .and(member.container.eq("ios")) | ||||
|             ) | ||||
|         val iosPushTokens = queryFactory | ||||
|             .select(liveReservation.member.pushToken) | ||||
|             .from(liveReservation) | ||||
|             .innerJoin(liveReservation.room, liveRoom) | ||||
|             .innerJoin(liveReservation.member, member) | ||||
|             .where(where.and(member.container.eq("ios"))) | ||||
|             .fetch() | ||||
|             .toSet() | ||||
|             .chunked(500) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user