-
Notifications
You must be signed in to change notification settings - Fork 194
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1310 from Shelf-nu/delete-request-updates
feat: add url to admin dashboard user to the admin email to make requ…
- Loading branch information
Showing
1 changed file
with
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,7 +27,7 @@ import { appendToMetaTitle } from "~/utils/append-to-meta-title"; | |
import { checkExhaustiveSwitch } from "~/utils/check-exhaustive-switch"; | ||
import { delay } from "~/utils/delay"; | ||
import { sendNotification } from "~/utils/emitter/send-notification.server"; | ||
import { ADMIN_EMAIL } from "~/utils/env"; | ||
import { ADMIN_EMAIL, SERVER_URL } from "~/utils/env"; | ||
import { makeShelfError } from "~/utils/error"; | ||
import { isFormProcessing } from "~/utils/form"; | ||
import { getValidationErrors } from "~/utils/http"; | ||
|
@@ -120,7 +120,7 @@ export async function action({ context, request }: ActionFunctionArgs) { | |
void sendEmail({ | ||
to: ADMIN_EMAIL || "[email protected]", | ||
subject: "Delete account request", | ||
text: `User with id ${userId} and email ${payload.email} has requested to delete their account. \n\n Reason: ${reason}\n\n`, | ||
text: `User with id ${userId} and email ${payload.email} has requested to delete their account. \n User: ${SERVER_URL}/admin-dashboard/${userId} \n\n Reason: ${reason}\n\n`, | ||
}); | ||
|
||
void sendEmail({ | ||
|