function getUserVotes
getUserVotes(userId: string): string[]

Returns the ids of the dumps userId upvoted. The WebSocket route sends them in its welcome message, and the client shows those vote buttons pressed.

Parameters

userId: string

Return Type

string[]

Usage

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