This commit is contained in:
David Nguyen
2025-05-07 15:03:20 +10:00
parent 419bc02171
commit 7abfc9e271
390 changed files with 21254 additions and 12607 deletions

View File

@ -0,0 +1,18 @@
import { updateTeam } from '@documenso/lib/server-only/team/update-team';
import { authenticatedProcedure } from '../trpc';
import { ZUpdateTeamRequestSchema, ZUpdateTeamResponseSchema } from './update-team.types';
export const updateTeamRoute = authenticatedProcedure
// .meta(updateTeamMeta)
.input(ZUpdateTeamRequestSchema)
.output(ZUpdateTeamResponseSchema)
.mutation(async ({ input, ctx }) => {
const { teamId, data } = input;
await updateTeam({
userId: ctx.user.id,
teamId,
data,
});
});