Fix duplicate behavior with submitting full video labels

This commit is contained in:
Ajay
2024-01-31 13:05:47 -05:00
parent e041b9c930
commit 121cc7f481

View File

@@ -329,13 +329,12 @@ async function checkEachSegmentValid(rawIP: IPAddress, paramUserID: UserID, user
if (segments[i].actionType === ActionType.Full) {
// Forward as vote
await vote(rawIP, duplicateCheck2Row.UUID, paramUserID, 1);
segments[i].ignoreSegment = true;
continue;
}
}
}
if (segments.every((s) => s.ignoreSegment)) {
if (segments.every((s) => s.ignoreSegment && s.actionType !== ActionType.Full)) {
return { pass: false, errorMessage: "Segment has already been submitted before.", errorCode: 409 };
}