Support uppercase hashes

This commit is contained in:
Ajay Ramachandran
2021-03-11 18:18:55 -05:00
parent f4cf646f80
commit 0c4e4af228

View File

@@ -9,6 +9,7 @@ export async function getSkipSegmentsByHash(req: Request, res: Response) {
res.status(400).send("Hash prefix does not match format requirements."); // Exit early on faulty prefix
return;
}
hashPrefix = hashPrefix.toLowerCase() as VideoIDHash;
let categories: Category[] = [];
try {