fix: email enable then can subscribe

Signed-off-by: Innei <tukon479@gmail.com>
This commit is contained in:
Innei
2023-02-14 11:38:11 +08:00
parent f03a1e551b
commit 2aa46d07e9

View File

@@ -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
}
}