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

Function resetPb

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

Source from the content-addressed store, hash-verified

561}
562
563export async function resetPb(uid: string): Promise<void> {
564 await updateUser(
565 { uid },
566 {
567 $set: {
568 personalBests: {
569 time: {},
570 words: {},
571 quote: {},
572 zen: {},
573 custom: {},
574 },
575 },
576 },
577 { stack: "reset pb" },
578 );
579}
580
581export async function updateLastHashes(
582 uid: string,

Callers

nothing calls this directly

Calls 1

updateUserFunction · 0.70

Tested by

no test coverage detected