Send email when no integrations are present as well
This commit is contained in:
parent
4dacf64a18
commit
cb9d749310
1 changed files with 2 additions and 2 deletions
|
@ -141,8 +141,8 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// If one of the integrations allows email confirmations, send it.
|
// If one of the integrations allows email confirmations or no integrations are added, send it.
|
||||||
if (!results.every((result) => result.disableConfirmationEmail)) {
|
if (currentUser.credentials.length === 0 || !results.every((result) => result.disableConfirmationEmail)) {
|
||||||
await createConfirmBookedEmail(
|
await createConfirmBookedEmail(
|
||||||
evt, hashUID
|
evt, hashUID
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue