aboutsummaryrefslogtreecommitdiffhomepage
path: root/server.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server.ts')
-rw-r--r--server.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/server.ts b/server.ts
index 0e6f787a6..9094ac943 100644
--- a/server.ts
+++ b/server.ts
@@ -89,6 +89,7 @@ import { Redis } from './server/lib/redis'
89import { BadActorFollowScheduler } from './server/lib/schedulers/bad-actor-follow-scheduler' 89import { BadActorFollowScheduler } from './server/lib/schedulers/bad-actor-follow-scheduler'
90import { RemoveOldJobsScheduler } from './server/lib/schedulers/remove-old-jobs-scheduler' 90import { RemoveOldJobsScheduler } from './server/lib/schedulers/remove-old-jobs-scheduler'
91import { UpdateVideosScheduler } from './server/lib/schedulers/update-videos-scheduler' 91import { UpdateVideosScheduler } from './server/lib/schedulers/update-videos-scheduler'
92import { YoutubeDlUpdateScheduler } from './server/lib/schedulers/youtube-dl-update-scheduler'
92 93
93// ----------- Command line ----------- 94// ----------- Command line -----------
94 95
@@ -151,7 +152,7 @@ app.use(function (err, req, res, next) {
151 error = err.stack || err.message || err 152 error = err.stack || err.message || err
152 } 153 }
153 154
154 logger.error('Error in controller.', { error }) 155 logger.error('Error in controller.', { err: error })
155 return res.status(err.status || 500).end() 156 return res.status(err.status || 500).end()
156}) 157})
157 158
@@ -186,6 +187,7 @@ async function startApplication () {
186 BadActorFollowScheduler.Instance.enable() 187 BadActorFollowScheduler.Instance.enable()
187 RemoveOldJobsScheduler.Instance.enable() 188 RemoveOldJobsScheduler.Instance.enable()
188 UpdateVideosScheduler.Instance.enable() 189 UpdateVideosScheduler.Instance.enable()
190 YoutubeDlUpdateScheduler.Instance.enable()
189 191
190 // Redis initialization 192 // Redis initialization
191 Redis.Instance.init() 193 Redis.Instance.init()