(uid: string)
| 194 | } |
| 195 | |
| 196 | export async function clearPb(uid: string): Promise<void> { |
| 197 | await getUsersCollection().updateOne( |
| 198 | { uid }, |
| 199 | { |
| 200 | $set: { |
| 201 | personalBests: { |
| 202 | time: {}, |
| 203 | words: {}, |
| 204 | quote: {}, |
| 205 | zen: {}, |
| 206 | custom: {}, |
| 207 | }, |
| 208 | lbPersonalBests: { |
| 209 | time: {}, |
| 210 | }, |
| 211 | }, |
| 212 | }, |
| 213 | ); |
| 214 | } |
| 215 | |
| 216 | export async function optOutOfLeaderboards(uid: string): Promise<void> { |
| 217 | await getUsersCollection().updateOne( |
nothing calls this directly
no test coverage detected