MCPcopy
hub / github.com/umami-software/umami / getUser

Function getUser

src/queries/prisma/user.ts:37–46  ·  view source on GitHub ↗
(userId: string, options: GetUserOptions = {})

Source from the content-addressed store, hash-verified

35}
36
37export async function getUser(userId: string, options: GetUserOptions = {}) {
38 return findUser(
39 {
40 where: {
41 id: userId,
42 },
43 },
44 options,
45 );
46}
47
48export async function getUserByUsername(username: string, options: GetUserOptions = {}) {
49 return findUser({ where: { username: username.toLowerCase() } }, options);

Callers 6

checkAuthFunction · 0.90
GETFunction · 0.90
POSTFunction · 0.90
POSTFunction · 0.90
POSTFunction · 0.90

Calls 1

findUserFunction · 0.85

Tested by

no test coverage detected