From 0ec0ba4f24363f46596256aedff9230fbca75592 Mon Sep 17 00:00:00 2001 From: Amine Date: Fri, 18 Oct 2024 12:28:18 +0100 Subject: [PATCH] remove resend --- backend/src/subscribers/order-created.ts | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/backend/src/subscribers/order-created.ts b/backend/src/subscribers/order-created.ts index 4ccbf20..4282d0f 100644 --- a/backend/src/subscribers/order-created.ts +++ b/backend/src/subscribers/order-created.ts @@ -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, @@ -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 = {