MCPcopy Create free account
hub / github.com/monkeytypegame/monkeytype / optOutOfLeaderboards

Function optOutOfLeaderboards

backend/src/dal/user.ts:216–228  ·  view source on GitHub ↗
(uid: string)

Source from the content-addressed store, hash-verified

214}
215
216export async function optOutOfLeaderboards(uid: string): Promise<void> {
217 await getUsersCollection().updateOne(
218 { uid },
219 {
220 $set: {
221 lbOptOut: true,
222 lbPersonalBests: {
223 time: {},
224 },
225 },
226 },
227 );
228}
229
230export async function updateQuoteRatings(
231 uid: string,

Callers

nothing calls this directly

Calls 1

getUsersCollectionFunction · 0.85

Tested by

no test coverage detected