MCPcopy Create free account
hub / github.com/benjitaylor/agentation / rowToUser

Function rowToUser

mcp/src/server/sqlite.ts:171–180  ·  view source on GitHub ↗
(row: Record<string, unknown>)

Source from the content-addressed store, hash-verified

169}
170
171function rowToUser(row: Record<string, unknown>): User {
172 return {
173 id: row.id as string,
174 email: row.email as string,
175 orgId: row.org_id as string,
176 role: row.role as UserRole,
177 createdAt: row.created_at as string,
178 updatedAt: row.updated_at as string | undefined,
179 };
180}
181
182function rowToApiKey(row: Record<string, unknown>): ApiKey {
183 return {

Callers 2

getUserFunction · 0.85
getUserByEmailFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…