diff options
author | Chocobozzz <me@florianbigard.com> | 2021-08-25 16:14:11 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-08-26 10:01:42 +0200 |
commit | 98ab5dc81048d47d08a231f17698128f959e59b2 (patch) | |
tree | 7f74f835dc35d9f72918c56857f7f28b70d7053f /server/controllers/api/videos/live.ts | |
parent | 851675c5591dcab1070183f0ed1b1a788de07d2c (diff) | |
download | PeerTube-98ab5dc81048d47d08a231f17698128f959e59b2.tar.gz PeerTube-98ab5dc81048d47d08a231f17698128f959e59b2.tar.zst PeerTube-98ab5dc81048d47d08a231f17698128f959e59b2.zip |
Remove useless async
Diffstat (limited to 'server/controllers/api/videos/live.ts')
-rw-r--r-- | server/controllers/api/videos/live.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/controllers/api/videos/live.ts b/server/controllers/api/videos/live.ts index ed4da8f47..151ff354b 100644 --- a/server/controllers/api/videos/live.ts +++ b/server/controllers/api/videos/live.ts | |||
@@ -39,7 +39,7 @@ liveRouter.post('/live', | |||
39 | liveRouter.get('/live/:videoId', | 39 | liveRouter.get('/live/:videoId', |
40 | authenticate, | 40 | authenticate, |
41 | asyncMiddleware(videoLiveGetValidator), | 41 | asyncMiddleware(videoLiveGetValidator), |
42 | asyncRetryTransactionMiddleware(getLiveVideo) | 42 | getLiveVideo |
43 | ) | 43 | ) |
44 | 44 | ||
45 | liveRouter.put('/live/:videoId', | 45 | liveRouter.put('/live/:videoId', |
@@ -57,7 +57,7 @@ export { | |||
57 | 57 | ||
58 | // --------------------------------------------------------------------------- | 58 | // --------------------------------------------------------------------------- |
59 | 59 | ||
60 | async function getLiveVideo (req: express.Request, res: express.Response) { | 60 | function getLiveVideo (req: express.Request, res: express.Response) { |
61 | const videoLive = res.locals.videoLive | 61 | const videoLive = res.locals.videoLive |
62 | 62 | ||
63 | return res.json(videoLive.toFormattedJSON()) | 63 | return res.json(videoLive.toFormattedJSON()) |