bump eslint, fix lint warning, made request dev

This commit is contained in:
Michael C
2021-09-21 00:47:35 -04:00
parent 1dd534cce9
commit 22c4468180
3 changed files with 100 additions and 84 deletions

View File

@@ -59,7 +59,7 @@ export async function getSkipSegmentsByHash(req: Request, res: Response): Promis
return res.status(400).send("Bad parameter: requiredSegments (invalid JSON)");
}
const service = getService(req.query.service, req.body.service);
const service: Service = getService(req.query.service, req.body.service);
// filter out none string elements, only flat array with strings is valid
categories = categories.filter((item: any) => typeof item === "string");