From c0c2b365ae1b18cbb14ccdeae3a3830175b1cd5f Mon Sep 17 00:00:00 2001 From: Ajay Date: Thu, 6 Jan 2022 15:17:21 -0500 Subject: [PATCH] Fix full video different category duplicate error --- src/routes/postSkipSegments.ts | 4 ++-- src/utils/getSubmissionUUID.ts | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/routes/postSkipSegments.ts b/src/routes/postSkipSegments.ts index 64e27ff..50c527e 100644 --- a/src/routes/postSkipSegments.ts +++ b/src/routes/postSkipSegments.ts @@ -239,7 +239,7 @@ async function autoModerateSubmission(apiVideoInfo: APIVideoInfo, const startTime = parseFloat(segments[i].segment[0]); const endTime = parseFloat(segments[i].segment[1]); - const UUID = getSubmissionUUID(submission.videoID, segments[i].actionType, submission.userID, startTime, endTime, submission.service); + const UUID = getSubmissionUUID(submission.videoID, segments[i].category, segments[i].actionType, submission.userID, startTime, endTime, submission.service); // Send to Discord // Note, if this is too spammy. Consider sending all the segments as one Webhook sendWebhooksNB(submission.userID, submission.videoID, UUID, startTime, endTime, segments[i].category, nbPredictions.probabilities[predictionIdx], data); @@ -654,7 +654,7 @@ export async function postSkipSegments(req: Request, res: Response): Promise