chore: added teacher comments to all service methods

This commit is contained in:
Balu Babu
2023-01-23 06:04:23 +05:30
parent b2acd5511c
commit 93479320ee
7 changed files with 125 additions and 10 deletions

View File

@@ -38,6 +38,12 @@ export class MailerService implements OnModuleInit {
);
}
/**
*
* @param {string} to Receiver's email id
* @param {UserMagicLinkMailDescription} mailDesc Details of email to be sent for Magic-Link auth
* @returns {Promise<postmark.Models.MessageSendingResponse>} Response if email was send successfully or not
*/
async sendAuthEmail(to: string, mailDesc: UserMagicLinkMailDescription) {
try {
const res = await this.client.sendEmailWithTemplate({