@punks/backend-entity-manager 0.0.357 → 0.0.358

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cjs/index.js CHANGED
@@ -40400,6 +40400,7 @@ let AwsSesEmailProvider = class AwsSesEmailProvider {
40400
40400
  bcc: input.bcc ?? templateData.bcc,
40401
40401
  cc: input.cc ?? templateData.cc,
40402
40402
  from: input.from ?? templateData.from,
40403
+ attachments: input.attachments,
40403
40404
  });
40404
40405
  }
40405
40406
  async sendHtmlEmail(input) {
@@ -40526,6 +40527,12 @@ let SendgridEmailProvider = class SendgridEmailProvider {
40526
40527
  ...processedPayload,
40527
40528
  },
40528
40529
  templateId: templateData.sendgridTemplateId,
40530
+ attachments: input.attachments?.map((attachment) => ({
40531
+ ...attachment,
40532
+ content: attachment.content instanceof Buffer
40533
+ ? attachment.content.toString("utf-8")
40534
+ : attachment.content,
40535
+ })),
40529
40536
  });
40530
40537
  if (sendgridSettings.value.loggingEnabled) {
40531
40538
  this.logger.info("Sending templated email", {