function removeVote
removeVote(
dumpId: string,
userId: string
): VoteResult

Takes back userId's upvote on a dump. No visibility check: taking back a vote on a dump that has since gone private is harmless, and it's the voter's own row.

Parameters

dumpId: string
userId: string

Return Type

Throws

APIException

404 when the user hasn't voted for the dump.

Usage

import { removeVote } from "api/services/vote-service.ts";