MCPcopy Create free account
hub / github.com/Linen-dev/linen.dev / findUsersAndInvitesByAccount

Function findUsersAndInvitesByAccount

apps/web/services/invites.ts:98–114  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

96}
97
98export async function findUsersAndInvitesByAccount(id: string): Promise<{
99 users: (users & {
100 auth: auths | null;
101 })[];
102 invites: invites[];
103}> {
104 const users = await prisma.users.findMany({
105 where: { accountsId: id, authsId: { not: null } },
106 include: { auth: true },
107 });
108
109 const invites = await prisma.invites.findMany({
110 where: { accountsId: id, status: 'PENDING' },
111 });
112
113 return { users, invites };
114}
115
116const getOneInviteByUserType = Prisma.validator<Prisma.invitesArgs>()({
117 select: {

Callers 1

indexFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected