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

Function updateEmail

backend/src/dal/user.ts:242–249  ·  view source on GitHub ↗
(
  uid: string,
  email: string,
)

Source from the content-addressed store, hash-verified

240}
241
242export 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
251export async function getUser(uid: string, stack: string): Promise<DBUser> {
252 const user = await getUsersCollection().findOne({ uid });

Callers

nothing calls this directly

Calls 1

updateUserFunction · 0.70

Tested by

no test coverage detected