Add redis caching for 404s

This commit is contained in:
Ajay Ramachandran
2021-02-20 21:13:46 -05:00
parent 597dff7ac3
commit 01d318d902
6 changed files with 73 additions and 13 deletions

View File

@@ -1,8 +1,8 @@
import {handleGetSegments} from './getSkipSegments';
import {Request, Response} from 'express';
export function oldGetVideoSponsorTimes(req: Request, res: Response) {
let segments = handleGetSegments(req, res);
export async function oldGetVideoSponsorTimes(req: Request, res: Response): Promise<void> {
let segments = await handleGetSegments(req, res);
if (segments) {
// Convert to old outputs