-
Notifications
You must be signed in to change notification settings - Fork 117
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Eng runner] Send email after github connection deletion (#2919)
* [Eng runner] Send email after github connection deletion Related [task](dust-tt/tasks#283) Did not add the link because it depends on whether the account is individual or org, which `front` does not know (connectors might be able to get the info but making a route for that seems overkill) * Update front/lib/email.ts
- Loading branch information
1 parent
2e01c60
commit 90b1aa3
Showing
3 changed files
with
41 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,6 +55,22 @@ The Dust Team | |
console.log("ACTIVATION KEY SENT", user.email); | ||
}; | ||
|
||
export async function sendGithubDeletionEmail(email: string): Promise<void> { | ||
const cancelMessage = { | ||
from: { | ||
name: "Dust team", | ||
email: "[email protected]", | ||
}, | ||
subject: `[Dust] Github connection deleted - important information`, | ||
html: `<p>Hello from Dust,</p> | ||
<p>Your Dust connection to Github was deleted, along with all the related data on Dust servers.</p> | ||
<p>You can now uninstall the Dust app from your Github account to revoke authorizations initially granted to Dust when you connected the Github account.</p> | ||
<p>Please reply to this email if you have any questions.</p> | ||
<p>The Dust team</p>`, | ||
}; | ||
return sendEmail(email, cancelMessage); | ||
} | ||
|
||
/** Emails for cancelling / reactivating subscription */ | ||
|
||
export async function sendCancelSubscriptionEmail( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters