2
1
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2023-12-13 21:00:40 +01:00

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,