From c6cf984829fd90a7bdde0f2814b001dc763172f0 Mon Sep 17 00:00:00 2001 From: Lee sang Yeop Date: Wed, 29 Nov 2023 21:18:31 +0900 Subject: [PATCH] =?UTF-8?q?fix(api/notice):=20=EC=9A=B4=EC=98=81=EA=B8=B0?= =?UTF-8?q?=EA=B0=84=EC=9D=B4=20=EC=A7=80=EB=82=9C=20=EB=8D=B0=EC=9D=B4?= =?UTF-8?q?=ED=84=B0=EB=8A=94=20=EB=B0=98=ED=99=98=ED=95=98=EC=A7=80=20?= =?UTF-8?q?=EC=95=8A=EB=8A=94=20=EA=B8=B0=EB=8A=A5=20=EB=8F=99=EC=9E=91?= =?UTF-8?q?=ED=95=98=EB=8F=84=EB=A1=9D=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apis/notice/service.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/apis/notice/service.ts b/src/apis/notice/service.ts index a7951a2..2b62f37 100644 --- a/src/apis/notice/service.ts +++ b/src/apis/notice/service.ts @@ -71,7 +71,10 @@ export const getWhalebe = async (): Promise => { ).padStart(2, '0')}.${String(today.getDate()).padStart(2, '0')}`; const filteredData = whalebeData - .filter((data) => data.date >= todayString) + .filter( + (data) => + data.recruitment_period.split('~')[1].trim() >= todayString || data, + ) .slice(0, 7); return filteredData; } catch (error) {