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

Function update

packages/web/src/features/mcp/prismaScope.ts:304–309  ·  view source on GitHub ↗
({ args, query }: QueryHookParams<Prisma.UserMcpServerUpdateArgs>)

Source from the content-addressed store, hash-verified

302 return query(args);
303 },
304 async update({ args, query }: QueryHookParams<Prisma.UserMcpServerUpdateArgs>) {
305 assertNoUserMcpServerRelationAccess(args, 'userMcpServer.update');
306 assertUserMcpServerUniqueWhereForUser(args.where, user, 'userMcpServer.update');
307 assertNoIdentityMutation((args as UserMcpServerUpdateArgs).data, 'userMcpServer.update');
308 return query(args);
309 },
310 async updateMany({ args, query }: QueryHookParams<Prisma.UserMcpServerUpdateManyArgs>) {
311 assertNoUserMcpServerRelationAccess(args, 'userMcpServer.updateMany');
312 requireAuthenticatedUser(user, 'userMcpServer.updateMany');

Callers

nothing calls this directly

Tested by

no test coverage detected