From 2daf2b601f8b841f279a1f05f05897b647f29367 Mon Sep 17 00:00:00 2001 From: Lee sang Yeop Date: Sun, 4 Feb 2024 21:21:07 +0900 Subject: [PATCH] =?UTF-8?q?feat(noticeHandler):=20=EC=98=88=EA=B8=B0?= =?UTF-8?q?=EC=B9=98=20=EB=AA=BB=ED=95=9C=20=EC=97=90=EB=9F=AC=EB=A1=9C=20?= =?UTF-8?q?=EA=B3=B5=EC=A7=80=EC=8B=9C=ED=95=AD=20=ED=81=AC=EB=A1=A4?= =?UTF-8?q?=EB=A7=81=20=EC=8B=A4=ED=8C=A8=ED=95=9C=20=ED=95=99=EA=B3=BC?= =?UTF-8?q?=EB=8A=94=20=EC=8A=AC=EB=9E=99=20=EC=95=8C=EB=A6=BC=EC=9D=84=20?= =?UTF-8?q?=EB=B0=9B=EB=8F=84=EB=A1=9D=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/db/data/noticeHandler.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/db/data/noticeHandler.ts b/src/db/data/noticeHandler.ts index b6ef790..688edce 100644 --- a/src/db/data/noticeHandler.ts +++ b/src/db/data/noticeHandler.ts @@ -184,6 +184,11 @@ export const saveMajorNoticeToDB = async (): Promise => { }); await Promise.all(savePromises); + if (failedMajor.length !== 0) { + const failedMajorList = failedMajor.join(); + notificationToSlack('크롤링 실패한 학과: ' + failedMajorList); + } + return newNoticeMajor; };