Skip to content

Commit

Permalink
Merge pull request #1310 from Shelf-nu/delete-request-updates
Browse files Browse the repository at this point in the history
feat: add url to admin dashboard user to the admin email to make requ…
  • Loading branch information
DonKoko authored Sep 16, 2024
2 parents d1a2fd5 + a2ceabe commit 0bad4d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/routes/_layout+/account-details.general.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -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({
Expand Down

0 comments on commit 0bad4d6

Please sign in to comment.