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

Function findUser

apps/web/services/invites.ts:305–312  ·  view source on GitHub ↗
(accountId: string, authId: string)

Source from the content-addressed store, hash-verified

303}
304
305async function findUser(accountId: string, authId: string) {
306 return await prisma.users.findFirst({
307 where: {
308 accountsId: accountId,
309 authsId: authId,
310 },
311 });
312}
313
314async function checkoutTenant(authId: string, accountId: string) {
315 await prisma.auths.update({ where: { id: authId }, data: { accountId } });

Callers 2

joinCommunityFunction · 0.70
joinCommunityAfterSignInFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected