From 3d80fd982c5f897062de5c4c8a9f3806fed81842 Mon Sep 17 00:00:00 2001 From: Daniel Lockyer Date: Thu, 18 Aug 2022 22:14:54 +0200 Subject: [PATCH] Changed BATCH_SIZE to static class field refs https://github.com/TryGhost/Ghost/commit/fd6f48d6b20e7c05d22e225416ca7b1ff74823a6 - this is cleaner and would have avoided the issue fixed in the referenced commit --- ghost/mailgun-client/lib/mailgun-client.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ghost/mailgun-client/lib/mailgun-client.js b/ghost/mailgun-client/lib/mailgun-client.js index 744cbf54d8..c53abdc830 100644 --- a/ghost/mailgun-client/lib/mailgun-client.js +++ b/ghost/mailgun-client/lib/mailgun-client.js @@ -6,6 +6,8 @@ module.exports = class MailgunClient { #config; #settings; + static BATCH_SIZE = 1000; + constructor({config, settings}) { this.#config = config; this.#settings = settings; @@ -206,5 +208,3 @@ module.exports = class MailgunClient { return !!instance; } }; - -module.exports.BATCH_SIZE = 1000;