fix
This commit is contained in:
1 parent
1ae6257c11
commit
71b9150a9b
1 file changed
+5
-1
@@ -37,7 +37,11 @@ function cancelScheduledEmail(app: PublicAPIApp) {
|
|||||||
app.openapi(route, async (c) => {
|
app.openapi(route, async (c) => {
|
||||||
const team = c.var.team;
|
const team = c.var.team;
|
||||||
const emailId = c.req.param("emailId");
|
const emailId = c.req.param("emailId");
|
||||||
await checkIsValidEmailIdWithDomainRestriction(emailId, team.id, team.apiKey.domainId);
|
await checkIsValidEmailIdWithDomainRestriction(
|
||||||
|
emailId,
|
||||||
|
team.id,
|
||||||
|
team.apiKey.domainId ?? undefined
|
||||||
|
);
|
||||||
|
|
||||||
await cancelEmail(emailId);
|
await cancelEmail(emailId);
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user