mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-06 03:20:13 +08:00
15 lines
325 B
TypeScript
15 lines
325 B
TypeScript
import { connectDB } from '@odyssey/models'
|
|
import { removeExpired } from '../containers/expiryChecker'
|
|
import config from '../config'
|
|
import logger from '../utils/logger'
|
|
|
|
connectDB(config.db)
|
|
.then(removeExpired)
|
|
.then(() => {
|
|
process.exit(0)
|
|
})
|
|
.catch((err) => {
|
|
logger.error(err)
|
|
process.exit(1)
|
|
})
|