chore: update failing tests

This commit is contained in:
Mythie
2024-07-22 20:52:17 +10:00
parent 414b1b7287
commit ae5ae111a6
4 changed files with 11 additions and 2 deletions

View File

@ -244,11 +244,11 @@ export const templateRouter = router({
.input(ZCreateTemplateDirectLinkMutationSchema)
.mutation(async ({ input, ctx }) => {
try {
const { templateId, directRecipientId } = input;
const { templateId, teamId, directRecipientId } = input;
const userId = ctx.user.id;
const template = await getTemplateById({ id: templateId, userId: ctx.user.id });
const template = await getTemplateById({ id: templateId, teamId, userId: ctx.user.id });
const limits = await getServerLimits({ email: ctx.user.email, teamId: template.teamId });