Skip to content

Commit

Permalink
Merge pull request #36 from xeptagondev/meedan_label_issue
Browse files Browse the repository at this point in the history
add console for subscriber
  • Loading branch information
janithr1 authored Dec 10, 2024
2 parents 10d0f93 + 58d6e57 commit 7898d52
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
18 changes: 9 additions & 9 deletions apps/publisher/src/app/app.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,14 @@ export class AppController {
}

// only for test
// @Get('subscribers')
// @ApiTags('subscribers')
// async subscribers(){
// try{
// return this.appService.notifySubscribers();
// }catch(e){
// return new HttpException(e.message, 500)
// }
// }
@Get('subscribers')
@ApiTags('subscribers')
async subscribers(){
try{
return this.appService.notifySubscribers();
}catch(e){
return new HttpException(e.message, 500)
}
}

}
1 change: 1 addition & 0 deletions libs/email/src/lib/email.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -593,6 +593,7 @@ export class EmailService {
}

async sendEmailForSubscribers(email: string, lists: any): Promise<void> {
console.log('subscriber list', lists)
const t = EmailTranslations[this.lang];
try {
let htmlContent = `<div class="">
Expand Down

0 comments on commit 7898d52

Please sign in to comment.