function getDumpVoters
getDumpVoters(
dumpId: string,
page: number,
limit: number
): Page<User>

Returns a page of the users who upvoted a dump, latest vote first, for GET /api/dumps/:dumpId/voters. It doesn't check that the caller may see the dump: the route does that first, with getDump.

Parameters

dumpId: string
page: number
limit: number

Return Type

Throws

APIException

500 when a row doesn't parse as a user.

Usage

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