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

Function findInvitesByEmail

apps/web/services/invites.ts:228–244  ·  view source on GitHub ↗
(
  email: string,
  params?: { accountsId?: string }
)

Source from the content-addressed store, hash-verified

226}
227
228export async function findInvitesByEmail(
229 email: string,
230 params?: { accountsId?: string }
231) {
232 const where = {
233 ...(params?.accountsId && { accountsId: params.accountsId }),
234 email,
235 status: 'PENDING',
236 } as Prisma.invitesWhereInput;
237 return await prisma.invites.findMany({
238 where,
239 select: {
240 id: true,
241 accounts: true,
242 },
243 });
244}
245
246async function createChannelMemberships(accountId: string, userId: string) {
247 const channels = await prisma.channels.findMany({

Callers 4

handlerFunction · 0.90
handlerFunction · 0.90
getServerSidePropsFunction · 0.90
acceptInvitesFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected