MCPcopy Create free account
hub / github.com/sourcebot-dev/sourcebot / uniqueWhereUserId

Function uniqueWhereUserId

packages/web/src/features/mcp/prismaScope.ts:77–82  ·  view source on GitHub ↗
(where: Prisma.UserMcpServerWhereUniqueInput)

Source from the content-addressed store, hash-verified

75};
76
77const uniqueWhereUserId = (where: Prisma.UserMcpServerWhereUniqueInput): string | undefined => {
78 const compositeKey = where.userId_serverId;
79 return isRecord(compositeKey) && typeof compositeKey.userId === 'string'
80 ? compositeKey.userId
81 : undefined;
82};
83
84export const isUserMcpServerUniqueWhereForUser = (
85 where: Prisma.UserMcpServerWhereUniqueInput,

Callers 1

Calls 1

isRecordFunction · 0.70

Tested by

no test coverage detected