@event-driven-io/emmett 0.43.0-beta.18 → 0.43.0-beta.19

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/index.js CHANGED
@@ -2505,7 +2505,14 @@ const workflowProcessor = (options) => {
2505
2505
  workflowName: workflow.name,
2506
2506
  workflowId
2507
2507
  });
2508
- await context.connection.messageStore.appendToStream(streamName, messagesToAppend);
2508
+ const inputTaggedMessages = messagesToAppend.map((msg) => ({
2509
+ ...msg,
2510
+ metadata: {
2511
+ ...msg.metadata,
2512
+ input: true
2513
+ }
2514
+ }));
2515
+ await context.connection.messageStore.appendToStream(streamName, inputTaggedMessages);
2509
2516
  return;
2510
2517
  }
2511
2518
  }