feat: add ses tenant support for teams (#193)

This commit is contained in:
KM Koushik
2025-08-09 20:37:29 +10:00
committed by GitHub
parent e3b8a451da
commit da13107f88
11 changed files with 947 additions and 93 deletions

View File

@@ -36,7 +36,12 @@ function createDomain(app: PublicAPIApp) {
app.openapi(route, async (c) => {
const team = c.var.team;
const body = c.req.valid("json");
const response = await createDomainService(team.id, body.name, body.region);
const response = await createDomainService(
team.id,
body.name,
body.region,
team.sesTenantId ?? undefined
);
return c.json(response);
});