Skip to content

Commit

Permalink
Feat: 서버 최초 실행 시 웨일비 데이터를 저장하는 로직 시작하도록 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
pp449 committed Sep 17, 2023
1 parent c9ef75b commit 63d252f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/hooks/startCrawlingData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {
saveDepartmentToDB,
saveNoticeToDB,
saveSchoolNoticeToDB,
saveWhalebeToDB,
} from '@db/data/handler';
import db from '@db/index';
import createNoticeTable from '@db/table/createTables';
Expand All @@ -22,6 +23,7 @@ export const initialCrawling = () => {
await saveDepartmentToDB(collegeList);
await saveGraduationRequirementToDB();
await saveSchoolNoticeToDB();
await saveWhalebeToDB();
await saveNoticeToDB();
}
});
Expand Down

0 comments on commit 63d252f

Please sign in to comment.