Skip to content

Commit d229003

Browse files
committed
Unlock the video on duration change detected when voting
1 parent 1becebd commit d229003

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/routes/voteOnSponsorTime.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import { DBSegment, Category, HashedIP, IPAddress, SegmentUUID, Service, VideoID
1414
import { QueryCacher } from "../utils/queryCacher";
1515
import axios from "axios";
1616
import { getVideoDetails, videoDetails } from "../utils/getVideoDetails";
17+
import { deleteLockCategories } from "./deleteLockCategories";
1718

1819
const voteTypes = {
1920
normal: 0,
@@ -95,6 +96,7 @@ async function checkVideoDuration(UUID: SegmentUUID) {
9596
AND "hidden" = 0 AND "shadowHidden" = 0 AND
9697
"actionType" != 'full' AND "votes" > -2`,
9798
[videoID, service, latestSubmission.timeSubmitted]);
99+
deleteLockCategories(videoID, null, null, service).catch(Logger.error);
98100
}
99101
}
100102

0 commit comments

Comments
 (0)