Skip to content
Open
1 change: 1 addition & 0 deletions packages/common/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,7 @@ export enum MailServiceType {
ASYNC_QUESTION_NEW_COMMENT_ON_MY_POST = 'async_question_new_comment_on_my_post',
ASYNC_QUESTION_NEW_COMMENT_ON_OTHERS_POST = 'async_question_new_comment_on_others_post',
COURSE_CLONE_SUMMARY = 'course_clone_summary',
WEEKLY_COURSE_SUMMARY= 'weekly_course_summary',
}
/**
* Represents one of three possible user roles in a course.
Expand Down
3 changes: 2 additions & 1 deletion packages/server/src/mail/mail.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@ import { MailController } from './mail.controller';
import { MailServicesController } from './mail-services.controller';
import { UserModel } from 'profile/user.entity';
import { MailerService } from './mailer.service';
import { WeeklySummaryService } from './weekly-summary.service';

@Global()
@Module({
controllers: [MailController, MailServicesController],
imports: [ConfigModule],
providers: [MailService, MailerService],
providers: [MailService, MailerService, WeeklySummaryService],
exports: [MailService],
})
export class MailModule {}
Expand Down
Loading