test #335
| @@ -396,7 +396,7 @@ class LiveRoomQueryRepositoryImpl( | |||||||
|                     .and(subLiveRoom.channelName.isNotNull) |                     .and(subLiveRoom.channelName.isNotNull) | ||||||
|                     .and(subLiveRoom.member.role.eq(MemberRole.CREATOR)) |                     .and(subLiveRoom.member.role.eq(MemberRole.CREATOR)) | ||||||
|                     .and(subLiveRoom.member.isActive.isTrue) |                     .and(subLiveRoom.member.isActive.isTrue) | ||||||
|                     .and(subLiveRoom.updatedAt.goe(LocalDateTime.now().minusWeeks(2))) |                     .and(subLiveRoom.updatedAt.goe(LocalDateTime.now().minusWeeks(1))) | ||||||
|             ) |             ) | ||||||
|             .groupBy(subLiveRoom.member.id) |             .groupBy(subLiveRoom.member.id) | ||||||
|  |  | ||||||
| @@ -412,8 +412,11 @@ class LiveRoomQueryRepositoryImpl( | |||||||
|             .from(liveRoom) |             .from(liveRoom) | ||||||
|             .innerJoin(liveRoom.member, member) |             .innerJoin(liveRoom.member, member) | ||||||
|             .where( |             .where( | ||||||
|                 Expressions.list(liveRoom.member.id, liveRoom.updatedAt) |                 liveRoom.updatedAt.goe(LocalDateTime.now().minusWeeks(1)) | ||||||
|                     .`in`(subQuery) |                     .and( | ||||||
|  |                         Expressions.list(liveRoom.member.id, liveRoom.updatedAt) | ||||||
|  |                             .`in`(subQuery) | ||||||
|  |                     ) | ||||||
|             ) |             ) | ||||||
|             .orderBy(liveRoom.updatedAt.desc()) |             .orderBy(liveRoom.updatedAt.desc()) | ||||||
|             .limit(20) |             .limit(20) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user