@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/esm/index.js CHANGED
@@ -22420,7 +22420,8 @@ let EmailService = class EmailService {
22420
22420
  }
22421
22421
  async sendTemplatedEmail(input) {
22422
22422
  const template = this.getTemplate(input.templateId);
22423
- const transformedPayload = this.templateMiddleware?.processPayload(input.payload) ?? input.payload;
22423
+ const transformedPayload = (await this.templateMiddleware?.processPayload(input.payload)) ??
22424
+ input.payload;
22424
22425
  const sendInput = {
22425
22426
  ...input,
22426
22427
  payload: transformedPayload,