redis-consumer 1.1.9 → 1.1.10

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.
Files changed (2) hide show
  1. package/dist/consumer.js +2 -2
  2. package/package.json +1 -1
package/dist/consumer.js CHANGED
@@ -128,9 +128,9 @@ class RedisConsumer {
128
128
  throw new Error("No state was found for stream processing of " + stream);
129
129
  const fnc = state.executable;
130
130
  const messages = streamMessages.messages;
131
- if (flag) await handle(fnc, messages, stream);
131
+ if (flag) await this.handle(fnc, messages, stream);
132
132
  for (const message of messages) {
133
- if (!flag) await handle(fnc, message, stream);
133
+ if (!flag) await this.handle(fnc, message, stream);
134
134
  this.addAckMessage(stream, message.id);
135
135
  }
136
136
  await this.acknowlegdeMessages();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "redis-consumer",
3
- "version": "1.1.9",
3
+ "version": "1.1.10",
4
4
  "description": "Simple NodeJs consumer and producer for Redis Streams",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",