All files / src/messager password-updated.mailer.ts

27.27% Statements 6/22
27.27% Branches 3/11
0% Functions 0/10
35.29% Lines 6/17

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14  7x                 7x 7x 7x 7x
import { HBSTemplates } from '@/services/handlebars.service';
import { InternalMessager } from './index.mailer';

export class PasswordUpdatedMailer extends InternalMessager {
  constructor(protected receivers: string[]) {
    super(receivers, 'Password Updated!');
  }

  async generate(body: Record<string, string>) {
    await this.generateMail(HBSTemplates.PASSWORD_UPDATED, body);
    return this;
  }
}