Skip to content

Commit

Permalink
style: index.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Zain-ul-din committed Mar 20, 2024
1 parent a937925 commit f1a8e29
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@ import {logOnCrawlTimetable} from "./lib/logger";

new Worker()

.onCrawlMetaData(({metaData, timeTableRequestPayloads}) => {
if (timeTableRequestPayloads.length == 0) throw ERRORS.INVALID_COOKIE;
TimetableRepository.writeMetaData(metaData);
})
.onCrawlMetaData(({metaData, timeTableRequestPayloads}) => {
if (timeTableRequestPayloads.length == 0) throw ERRORS.INVALID_COOKIE;
TimetableRepository.writeMetaData(metaData);
})

.onCrawlTimetable(logOnCrawlTimetable)
.onCrawlTimetable(logOnCrawlTimetable)

.onFinish((allTimetables) =>
TimetableRepository.writeTimetables(allTimetables)
.writeTeachersTimetable(allTimetables)
.writeRoomsTimetable(allTimetables)
)
.onFinish((allTimetables) =>
TimetableRepository.writeTimetables(allTimetables)
.writeTeachersTimetable(allTimetables)
.writeRoomsTimetable(allTimetables)
)

.start();
.start();

0 comments on commit f1a8e29

Please sign in to comment.