(uid: string)
| 561 | } |
| 562 | |
| 563 | export 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 | |
| 581 | export async function updateLastHashes( |
| 582 | uid: string, |
nothing calls this directly
no test coverage detected