Ghost/core/server/services/email-analytics/index.js
Sam Lord 76f06fae3c
Revert "Revert "Extract logging from DI patterns, only use @tryghost/logging package"" (#13884)
This reverts commit fa8c3ebe99.

Reverting the revert, which will allow us to fully switch to @tryghost/logging v2.
2021-12-14 11:22:39 +00:00

18 lines
609 B
JavaScript

const config = require('../../../shared/config');
const db = require('../../data/db');
const settings = require('../../../shared/settings-cache');
const {EmailAnalyticsService} = require('@tryghost/email-analytics-service');
const EventProcessor = require('./lib/event-processor');
const MailgunProvider = require('@tryghost/email-analytics-provider-mailgun');
const queries = require('./lib/queries');
module.exports = new EmailAnalyticsService({
config,
settings,
eventProcessor: new EventProcessor({db}),
providers: [
new MailgunProvider({config, settings})
],
queries
});