aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers/api/jobs.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2023-02-16 11:56:58 +0100
committerChocobozzz <me@florianbigard.com>2023-02-16 11:56:58 +0100
commite65ef81cf51746616182a822bd6933bf0d16717a (patch)
treeff9e715b50eb690b8fbb5263cf1371d9f8103ff1 /server/controllers/api/jobs.ts
parent5bfe684e76d32a7745671635f8a75f932bd522e4 (diff)
downloadPeerTube-e65ef81cf51746616182a822bd6933bf0d16717a.tar.gz
PeerTube-e65ef81cf51746616182a822bd6933bf0d16717a.tar.zst
PeerTube-e65ef81cf51746616182a822bd6933bf0d16717a.zip
Update server dependencies
Diffstat (limited to 'server/controllers/api/jobs.ts')
-rw-r--r--server/controllers/api/jobs.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/controllers/api/jobs.ts b/server/controllers/api/jobs.ts
index 0a45c33ab..6a53e3083 100644
--- a/server/controllers/api/jobs.ts
+++ b/server/controllers/api/jobs.ts
@@ -26,7 +26,7 @@ jobsRouter.post('/pause',
26jobsRouter.post('/resume', 26jobsRouter.post('/resume',
27 authenticate, 27 authenticate,
28 ensureUserHasRight(UserRight.MANAGE_JOBS), 28 ensureUserHasRight(UserRight.MANAGE_JOBS),
29 asyncMiddleware(resumeJobQueue) 29 resumeJobQueue
30) 30)
31 31
32jobsRouter.get('/:state?', 32jobsRouter.get('/:state?',
@@ -55,8 +55,8 @@ async function pauseJobQueue (req: express.Request, res: express.Response) {
55 return res.sendStatus(HttpStatusCode.NO_CONTENT_204) 55 return res.sendStatus(HttpStatusCode.NO_CONTENT_204)
56} 56}
57 57
58async function resumeJobQueue (req: express.Request, res: express.Response) { 58function resumeJobQueue (req: express.Request, res: express.Response) {
59 await JobQueue.Instance.resume() 59 JobQueue.Instance.resume()
60 60
61 return res.sendStatus(HttpStatusCode.NO_CONTENT_204) 61 return res.sendStatus(HttpStatusCode.NO_CONTENT_204)
62} 62}