From a0f9d4dd4e686a5c6b0a99344cf1935a3f98b106 Mon Sep 17 00:00:00 2001 From: Owen Rees Date: Mon, 16 Oct 2023 13:09:12 +0200 Subject: [PATCH] tournament date filter --- src/app/[locale]/tournaments/page.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/app/[locale]/tournaments/page.tsx b/src/app/[locale]/tournaments/page.tsx index e5024ca..72a4704 100644 --- a/src/app/[locale]/tournaments/page.tsx +++ b/src/app/[locale]/tournaments/page.tsx @@ -33,6 +33,11 @@ const getTournaments = async () => { }, }, }, + { + $match: { + status: { $ne: "completed" } + }, + }, { $sort: { dateParts: 1,