Extracted template to be a separate variable

refs https://github.com/TryGhost/Toolbox/issues/292

- Nice to track the change history
This commit is contained in:
Naz 2022-05-05 12:32:52 +08:00
parent 6aeb27ce62
commit 1a0a4272f3

View File

@ -31,8 +31,9 @@ class APIVersionCompatibilityService {
const emails = await this.fetchEmailsToNotify();
for (const email of emails) {
const template = 'generic-mismatch';
const {html, text} = await this.emailContentGenerator.getContent({
template: 'generic-mismatch',
template,
data: {
acceptVersion,
contentVersion,