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

Function getUserByName

backend/src/dal/user.ts:302–309  ·  view source on GitHub ↗
(
  name: string,
  stack: string,
)

Source from the content-addressed store, hash-verified

300}
301
302export async function getUserByName(
303 name: string,
304 stack: string,
305): Promise<DBUser> {
306 const user = await findByName(name);
307 if (!user) throw new MonkeyError(404, "User not found", stack);
308 return migrateUser(user);
309}
310
311export async function isDiscordIdAvailable(
312 discordId: string,

Callers

nothing calls this directly

Calls 2

findByNameFunction · 0.85
migrateUserFunction · 0.85

Tested by

no test coverage detected