@punks/backend-entity-manager 0.0.342 → 0.0.343

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
@@ -22435,7 +22435,8 @@ exports.EmailService = class EmailService {
22435
22435
  }
22436
22436
  async sendTemplatedEmail(input) {
22437
22437
  const template = this.getTemplate(input.templateId);
22438
- const transformedPayload = this.templateMiddleware?.processPayload(input.payload) ?? input.payload;
22438
+ const transformedPayload = (await this.templateMiddleware?.processPayload(input.payload)) ??
22439
+ input.payload;
22439
22440
  const sendInput = {
22440
22441
  ...input,
22441
22442
  payload: transformedPayload,