( uid: string, email: string, )
| 240 | } |
| 241 | |
| 242 | export async function updateEmail( |
| 243 | uid: string, |
| 244 | email: string, |
| 245 | ): Promise<boolean> { |
| 246 | await updateUser({ uid }, { $set: { email } }, { stack: "update email" }); |
| 247 | |
| 248 | return true; |
| 249 | } |
| 250 | |
| 251 | export async function getUser(uid: string, stack: string): Promise<DBUser> { |
| 252 | const user = await getUsersCollection().findOne({ uid }); |
nothing calls this directly
no test coverage detected