fix: email enable then can subscribe
Signed-off-by: Innei <tukon479@gmail.com>
This commit is contained in:
@@ -230,8 +230,11 @@ export class SubscribeService implements OnModuleInit {
|
||||
}
|
||||
|
||||
async checkEnable() {
|
||||
const { emailSubscribe } = await this.configService.get('featureList')
|
||||
const {
|
||||
featureList: { emailSubscribe },
|
||||
mailOptions: { enable },
|
||||
} = await this.configService.waitForConfigReady()
|
||||
|
||||
return emailSubscribe
|
||||
return emailSubscribe && enable
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user