wingbot 3.61.5-alpha.1 → 3.62.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wingbot",
3
- "version": "3.61.5-alpha.1",
3
+ "version": "3.62.0",
4
4
  "description": "Enterprise Messaging Bot Conversation Engine",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -151,7 +151,13 @@ class Notifications extends EventEmitter {
151
151
 
152
152
  this._storage = notificationStorage;
153
153
  this._log = options.log || console;
154
+
155
+ /** @type {number} */
154
156
  this.limit = DEFAULT_LIMIT;
157
+
158
+ /** @type {number} */
159
+ this.sendLimit = DEFAULT_LIMIT;
160
+
155
161
  this._default24Clearance = options.default24Clearance || DEFAULT_24_CLEARANCE;
156
162
  this._allAudienceTag = typeof options.allAudienceTag !== 'undefined'
157
163
  ? options.allAudienceTag
@@ -824,7 +830,7 @@ class Notifications extends EventEmitter {
824
830
 
825
831
  while (run) {
826
832
  const now = timeStart + (Date.now() - begin);
827
- const pop = await this._storage.popTasks(this.limit, now);
833
+ const pop = await this._storage.popTasks(this.sendLimit, now);
828
834
  await this._processPoppedTasks(pop, processor);
829
835
 
830
836
  run = pop.length !== 0 && (timeStart + timeLimit) > Date.now();