MCPcopy Create free account
hub / github.com/boringstack-xyz/boringstack / getById

Method getById

apps/api/src/api/users/users.service.ts:23–25  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

21
22export class UsersService {
23 async getById(id: string): Promise<IUser | undefined> {
24 return db.query.users.findFirst({ where: eq(users.id, id) });
25 }
26
27 async create(data: ICreateUserData): Promise<IUser> {
28 const [created] = await db.insert(users).values(data).returning();

Callers 3

getProfileMethod · 0.95
getMeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected