MCPcopy Index your code
hub / github.com/Linen-dev/linen.dev / findUsersByAccountId

Function findUsersByAccountId

apps/web/services/users/index.ts:18–28  ·  view source on GitHub ↗
(
  accountId: string
)

Source from the content-addressed store, hash-verified

16};
17
18export async function findUsersByAccountId(
19 accountId: string
20): Promise<UserMap[]> {
21 return await prisma.users.findMany({
22 where: { accountsId: accountId },
23 select: {
24 externalUserId: true,
25 id: true,
26 },
27 });
28}
29
30export const findUser = async (
31 externalUserId: string,

Callers 1

syncUsersFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected