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; };