MCPcopy Index your code
hub / github.com/simstudioai/sim / getUserProfile

Function getUserProfile

apps/sim/lib/users/queries.ts:82–96  ·  view source on GitHub ↗
(userId: string)

Source from the content-addressed store, hash-verified

80 * Loads a user's public profile fields, or `null` when no matching user exists.
81 */
82export async function getUserProfile(userId: string) {
83 const [userRecord] = await db
84 .select({
85 id: user.id,
86 name: user.name,
87 email: user.email,
88 image: user.image,
89 emailVerified: user.emailVerified,
90 })
91 .from(user)
92 .where(eq(user.id, userId))
93 .limit(1)
94
95 return userRecord ?? null
96}

Callers 2

prefetchUserProfileFunction · 0.90
route.tsFile · 0.90

Calls 1

eqFunction · 0.50

Tested by

no test coverage detected