update to useSend

This commit is contained in:
KM Koushik
2025-09-04 04:46:16 +10:00
parent dbc9e3e976
commit 1c8bb550d9
2 changed files with 6 additions and 10 deletions

View File

@@ -29,7 +29,7 @@ export const domainRouter = createTRPCRouter({
ctx.team.id,
input.name,
input.region,
ctx.team.sesTenantId ?? undefined
ctx.team.sesTenantId ?? undefined,
);
}),
@@ -62,7 +62,7 @@ export const domainRouter = createTRPCRouter({
z.object({
clickTracking: z.boolean().optional(),
openTracking: z.boolean().optional(),
})
}),
)
.mutation(async ({ input }) => {
return updateDomain(input.id, {
@@ -100,10 +100,10 @@ export const domainRouter = createTRPCRouter({
teamId: team.id,
to: user.email,
from: `hello@${domain.name}`,
subject: "Unsend test email",
text: "hello,\n\nUnsend is the best open source sending platform\n\ncheck out https://unsend.dev",
html: "<p>hello,</p><p>Unsend is the best open source sending platform<p><p>check out <a href='https://unsend.dev'>unsend.dev</a>",
subject: "useSend test email",
text: "hello,\n\nuseSend is the best open source sending platform\n\ncheck out https://usesend.com",
html: "<p>hello,</p><p>useSend is the best open source sending platform<p><p>check out <a href='https://usesend.com'>usesend.com</a>",
});
}
},
),
});