Fix voting on an existing submission not working.

This commit is contained in:
Ajay
2023-06-13 00:12:16 -04:00
parent 9f7fa53b14
commit 633f128e90
2 changed files with 53 additions and 2 deletions

View File

@@ -133,8 +133,6 @@ async function handleExistingVotes(type: BrandingType, videoID: VideoID,
* Will update public vote totals and locked status.
*/
async function updateVoteTotals(type: BrandingType, existingVote: ExistingVote, UUID: BrandingUUID, isVip: boolean): Promise<void> {
if (!existingVote) return;
const table = type === BrandingType.Title ? `"titleVotes"` : `"thumbnailVotes"`;
// Don't upvote if we vote on the same submission