@izara_project/izara-core-library-asynchronous-flow 1.0.48 → 1.0.49

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
@@ -3,7 +3,7 @@
3
3
  "author": "Sven Mason <thebarbariansven@gmail.com>",
4
4
  "license": "AGPL-3.0-or-later",
5
5
  "homepage": "https://bitbucket.org/izara-core-libraries/izara-core-library-asynchronous-flow#readme",
6
- "version": "1.0.48",
6
+ "version": "1.0.49",
7
7
  "description": "Shared asynchronous flow logic",
8
8
  "type": "module",
9
9
  "main": "index.js",
@@ -55,7 +55,14 @@ async function _putAwaitingMultipleStepRecords(
55
55
  ...sharedAttributes
56
56
  };
57
57
  if (additionalAttributes) {
58
- itemPending.additionalAttributes = additionalAttributes;
58
+ if (sharedAttributes.additionalAttributes) {
59
+ itemPending.additionalAttributes = {
60
+ ...sharedAttributes.additionalAttributes,
61
+ ...additionalAttributes
62
+ };
63
+ } else {
64
+ itemPending.additionalAttributes = additionalAttributes;
65
+ }
59
66
  }
60
67
 
61
68
  return [