Send the invitation as a light letter that names the community, the inviter by email, and who can read the Rule.

This commit is contained in:
adilallo committed 2026-11-06 09:00:44 -07:00
1 parent 70ceb73104
commit 727a92a9ac
14 files changed
+534 -26

No files matched your search

+9 -1
View File
@@ -208,7 +208,15 @@ export const POST = apiRoute(
try {
for (const inv of invites) {
const verifyUrl = stakeholderInviteVerifyUrl(origin, inv.token);
await sendRuleStakeholderInviteEmail(inv.email, verifyUrl, title);
await sendRuleStakeholderInviteEmail({
to: inv.email,
verifyUrl,
origin,
communityName: title,
inviterEmail: user.email,
summary,
document,
});
}
} catch (err) {
logRouteError("rules.publish", requestId, err, {