Skip to content

Commit

Permalink
chore: quit the process after finished
Browse files Browse the repository at this point in the history
  • Loading branch information
jhaemin committed Jun 21, 2020
1 parent 834daf1 commit b851a35
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/scripts/seed-lectures.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/**
* npm run ts-node:[prod|dev] src/scripts/seed-lectures -- --lecturesFile data/lectures-2020-하계-1592711940996.json
*/

import { CTTS } from '@payw/cau-timetable-scraper'
import Config from '@/config'
import { Semester } from '@/types'
Expand All @@ -22,7 +26,7 @@ async function main(): Promise<void> {
lecturesFile: string
}>()

await boot({
const quit = await boot({
db: true,
listen: false,
})
Expand Down Expand Up @@ -73,6 +77,8 @@ async function main(): Promise<void> {
}

log(`[ ${chalk.blue('seeding')} ] Done seeding lectures`)

quit()
}

main()

0 comments on commit b851a35

Please sign in to comment.