nest-modules/mailer

callback is not called with the rendered data

noamshvacher opened this issue · 0 comments

Describe the bug
The callback function is not called with the rendered data from handlebars adapter:

To Reproduce
Steps to reproduce the behavior:

  1. Implement custom adapter that implements TemplateAdapter as decorator
  2. Inside compile call compile function of this.adapter
class CustomAdapter implements TemplateAdapter {
   constructor (private readonly adapter: TemplateAdapter) {}

   compile(...) {
      this.adapter.compile(
        content,
        (err?: any, body?: string) => {
          callback(err, body);
        }
      );
   }
}

Expected behavior
That the callback function will be called with err or body params

Screenshots
image

Desktop (please complete the following information):

  • OS: MacOS Ventura 13.4
  • Browser Arc
  • Version 0.111.0

Additional context
Mac M2 with silicone chip