Changed BATCH_SIZE to static class field

refs fd6f48d6b2

- this is cleaner and would have avoided the issue fixed in the
  referenced commit
This commit is contained in:
Daniel Lockyer 2022-08-18 22:14:54 +02:00
parent fd6f48d6b2
commit 3d80fd982c
No known key found for this signature in database
GPG Key ID: D21186F0B47295AD

View File

@ -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;