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.
- package/dist/consumer.js +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();
|