update dependencies, add shims for node-fetch v3

This commit is contained in:
Michael C
2021-09-20 01:43:19 -04:00
parent 803c3f2a29
commit 1dd534cce9
5 changed files with 126 additions and 126 deletions

View File

@@ -240,7 +240,7 @@ async function autoModerateSubmission(apiVideoInfo: APIVideoInfo,
&segments=${nbString.substring(0, nbString.length - 1)}`);
if (!response.ok) return false;
const nbPredictions = await response.json();
const nbPredictions = await response.json() as Record<string, any>;
let nbDecision = false;
let predictionIdx = 0; //Keep track because only sponsor categories were submitted
for (let i = 0; i < segments.length; i++) {