Skip to content

Commit

Permalink
remove resend
Browse files Browse the repository at this point in the history
  • Loading branch information
diboune committed Oct 18, 2024
1 parent ed116d8 commit 0ec0ba4
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions backend/src/subscribers/order-created.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import { Modules } from "@medusajs/framework/utils";
import type { SubscriberArgs, SubscriberConfig } from "@medusajs/medusa";
import OrderConfirmation from "data/templates/order-confirmation";
import { sendEmail } from "lib/email";

export default async function orderCreateHandler({
event,
Expand Down Expand Up @@ -33,12 +31,12 @@ export default async function orderCreateHandler({
console.error("Error posting event data:", error);
}

if (order)
await sendEmail({
to: order.email,
subject: "Thank you for you order",
react: OrderConfirmation({ order }),
});
// if (order)
// await sendEmail({
// to: order.email,
// subject: "Thank you for you order",
// react: OrderConfirmation({ order }),
// });
}

export const config: SubscriberConfig = {
Expand Down

0 comments on commit 0ec0ba4

Please sign in to comment.