mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-04-08 02:52:39 -05:00
Fixed mailgun instance not updated on settings change
no issue
This commit is contained in:
parent
6d1de1b912
commit
22b48cbef3
1 changed files with 2 additions and 3 deletions
|
@ -2,7 +2,6 @@ const _ = require('lodash');
|
|||
const common = require('../../lib/common');
|
||||
const mailgunProvider = require('./mailgun');
|
||||
const configService = require('../../config');
|
||||
const mailgunInstance = mailgunProvider.getInstance();
|
||||
|
||||
/**
|
||||
* An email address
|
||||
|
@ -25,7 +24,7 @@ module.exports = {
|
|||
*/
|
||||
async send(message, recipients, recipientData = {}) {
|
||||
let BATCH_SIZE = 1000;
|
||||
|
||||
const mailgunInstance = mailgunProvider.getInstance();
|
||||
if (!mailgunInstance) {
|
||||
return;
|
||||
}
|
||||
|
@ -66,11 +65,11 @@ module.exports = {
|
|||
},
|
||||
|
||||
async getStats(messageId) {
|
||||
const mailgunInstance = mailgunProvider.getInstance();
|
||||
try {
|
||||
let filter = {
|
||||
'message-id': messageId
|
||||
};
|
||||
|
||||
if (!mailgunInstance) {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue