mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-06 03:50:26 +02:00
Add subdivision to viewer stats
This commit is contained in:
parent
4437ae0fd3
commit
4cbea51255
18 changed files with 243 additions and 61 deletions
|
@ -48,6 +48,10 @@ async function runCommand (req: express.Request, res: express.Response) {
|
|||
'process-video-channel-sync-latest': () => VideoChannelSyncLatestScheduler.Instance.execute()
|
||||
}
|
||||
|
||||
if (!processors[body.command]) {
|
||||
return res.fail({ message: 'Invalid command' })
|
||||
}
|
||||
|
||||
await processors[body.command]()
|
||||
|
||||
return res.status(HttpStatusCode.NO_CONTENT_204).end()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue