Skip to content

Commit 4304dcd

Browse files
authored
Cluster 기한 경과 시에도 리스트에 보이는 현상 (#184)
2 parents 6943b56 + 8fd7b98 commit 4304dcd

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

infra/repositories/prisma/group-buy/PrismaGroupBuyRepository.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,13 @@ async getList(
127127
maxUser: number;
128128
})[]> {
129129
const groupBuyList = await this.prisma.groupBuy.findMany({
130-
where: { neighborhoodId, deletedAt: null },
130+
where: {
131+
neighborhoodId,
132+
deletedAt: null,
133+
meetingDate: {
134+
gte: new Date(),
135+
}
136+
},
131137
orderBy: { meetingDate: "desc" },
132138
skip: offset,
133139
take: limit,

0 commit comments

Comments
 (0)