remove shipping label attachment from emails

This commit is contained in:
Alaguraj0361 2026-06-05 17:43:09 +05:30
parent 7894b656e3
commit f51f2ef0b8

View File

@ -227,7 +227,7 @@ const sendEmailWithAttachment = async (toEmail, orderData, pdfBuffer, shippingLa
}); });
} }
// --- Seller attachments: Invoice PDF + Shipping Label PDF --- // --- Seller attachments: Invoice PDF only ---
const sellerAttachments = [ const sellerAttachments = [
{ {
filename: `Invoice_${orderNumber}.pdf`, filename: `Invoice_${orderNumber}.pdf`,
@ -236,14 +236,6 @@ const sendEmailWithAttachment = async (toEmail, orderData, pdfBuffer, shippingLa
} }
]; ];
if (shippingLabelBuffer) {
sellerAttachments.push({
filename: `ShippingLabel_${orderNumber}.pdf`,
content: shippingLabelBuffer,
contentType: 'application/pdf'
});
}
if (logoExists) { if (logoExists) {
sellerAttachments.push({ sellerAttachments.push({
filename: 'logo.png', filename: 'logo.png',