(uid: string)
| 214 | } |
| 215 | |
| 216 | export 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 | |
| 230 | export async function updateQuoteRatings( |
| 231 | uid: string, |
nothing calls this directly
no test coverage detected