- if (body.command === 'remove-dandling-resumable-uploads') {
- await RemoveDanglingResumableUploadsScheduler.Instance.execute()
+ const processors: { [id in SendDebugCommand['command']]: () => Promise<any> } = {
+ 'remove-dandling-resumable-uploads': () => RemoveDanglingResumableUploadsScheduler.Instance.execute(),
+ 'process-video-views-buffer': () => VideoViewsBufferScheduler.Instance.execute(),
+ 'process-video-viewers': () => VideoViewsManager.Instance.processViewerStats()