Skip to content

Commit

Permalink
Revert "add MilAdapterBase"
Browse files Browse the repository at this point in the history
This reverts commit ab13726.
  • Loading branch information
andreascreten committed Feb 4, 2025
1 parent ddebaa1 commit 01bcf80
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 30 deletions.
23 changes: 0 additions & 23 deletions ghost/core/core/server/adapters/mail/MailAdapterBase.js

This file was deleted.

1 change: 0 additions & 1 deletion ghost/core/core/server/services/adapter-manager/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ adapterManager.registerAdapter('storage', require('ghost-storage-base'));
adapterManager.registerAdapter('scheduling', require('../../adapters/scheduling/scheduling-base'));
adapterManager.registerAdapter('sso', require('../../adapters/sso/SSOBase'));
adapterManager.registerAdapter('cache', require('@tryghost/adapter-base-cache'));
adapterManager.registerAdapter('mail', require('../../../../../mailgun-client/index'));

module.exports = {
/**
Expand Down
4 changes: 1 addition & 3 deletions ghost/mailgun-client/lib/MailgunClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,14 @@ const debug = require('@tryghost/debug');
const logging = require('@tryghost/logging');
const metrics = require('@tryghost/metrics');
const errors = require('@tryghost/errors');
const MailAdapterBase = require('../../core/core/server/adapters/mail/MailAdapterBase');

module.exports = class MailgunClient extends MailAdapterBase {
module.exports = class MailgunClient {
#config;
#settings;

static DEFAULT_BATCH_SIZE = 1000;

constructor({config, settings}) {
super();
this.#config = config;
this.#settings = settings;
}
Expand Down
4 changes: 1 addition & 3 deletions ghost/postmark-client/lib/PostmarkClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,14 @@ const logging = require('@tryghost/logging');
const metrics = require('@tryghost/metrics');
const errors = require('@tryghost/errors');
const {ServerClient} = require('postmark');
const MailAdapterBase = require('../../core/core/server/adapters/mail/MailAdapterBase');

module.exports = class PostmarkClient extends MailAdapterBase {
module.exports = class PostmarkClient {
#config;
#settings;

static DEFAULT_BATCH_SIZE = 500;

constructor({config, settings}) {
super();
this.#config = config;
this.#settings = settings;
}
Expand Down

0 comments on commit 01bcf80

Please sign in to comment.