Skip to content

Commit

Permalink
fix(defer): Added new setting const:sender:defer_times ZMS 63 (#574)
Browse files Browse the repository at this point in the history
* Added new setting const:sender:defer_times

* Bumped deps
  • Loading branch information
andris9 authored Dec 14, 2023
1 parent 1fe0481 commit 9aab242
Show file tree
Hide file tree
Showing 5 changed files with 841 additions and 737 deletions.
5 changes: 4 additions & 1 deletion .ncurc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ module.exports = {
upgrade: true,
reject: [
// mongodb 5.x driver does not support callbacks, only promises
'mongodb'
'mongodb',

// no support for Node 16
'undici'
]
};
12 changes: 12 additions & 0 deletions lib/settings-handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,18 @@ const SETTING_KEYS = [
type: 'number',
constKey: 'MAX_FILTERS',
schema: Joi.number()
},

{
key: 'const:sender:defer_times',
name: 'Deferred email delay',
description: 'Comma separated list of times between deferred delivery attempts. Eg. "5m, 15m, 20m, 1h, 1h, 1h"',
type: 'string',
confValue: '5m, 7m, 8m, 25m, 75m, 2h, 4h, 4h, 4h, 4h, 4h, 4h, 4h, 4h, 4h, 4h, 4h',
schema: Joi.string()
.allow('')
.trim()
.pattern(/^\d+\s*[a-z]*(\s*,\s*\d+\s*[a-z]*)*$/)
}
];

Expand Down
Loading

0 comments on commit 9aab242

Please sign in to comment.