@izara_project/izara-core-library-asynchronous-flow 1.0.16 → 1.0.18
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/index.js +2 -2
- package/package.json +1 -1
- package/src/AsyncFlowSharedLib.js +7 -5
package/index.js
CHANGED
|
@@ -34,8 +34,8 @@ module.exports = {
|
|
|
34
34
|
createAwaitingMultipleStepsWithAdditionalAttributes: asyncFlowSharedLib.createAwaitingMultipleStepsWithAdditionalAttributes,
|
|
35
35
|
createAwaitingMultipleSteps: asyncFlowSharedLib.createAwaitingMultipleSteps,
|
|
36
36
|
findPendingStepIdsAwaitingMultipleSteps: asyncFlowSharedLib.findPendingStepIdsAwaitingMultipleSteps,
|
|
37
|
-
findPendingStepsAwaitingMultipleSteps: asyncFlowSharedLib.
|
|
38
|
-
findPendingStepAwaitingMultipleSteps: asyncFlowSharedLib.
|
|
37
|
+
findPendingStepsAwaitingMultipleSteps: asyncFlowSharedLib.findPendingStepsAwaitingMultipleSteps,
|
|
38
|
+
findPendingStepAwaitingMultipleSteps: asyncFlowSharedLib.findPendingStepAwaitingMultipleSteps,
|
|
39
39
|
findAwaitingMultipleStepByPending: asyncFlowSharedLib.findAwaitingMultipleStepByPending,
|
|
40
40
|
// Awaiting Step
|
|
41
41
|
createAwaitingStep: asyncFlowSharedLib.createAwaitingStep,
|
package/package.json
CHANGED
|
@@ -963,7 +963,6 @@ async function checkUniqueRequestProcessing(
|
|
|
963
963
|
queryElementsWhenUpdate,
|
|
964
964
|
{ complexAttributes: true }, // force to complex
|
|
965
965
|
)
|
|
966
|
-
|
|
967
966
|
} catch (err) { // catch error when put and handle errors.
|
|
968
967
|
_izContext.logger.debug('updateItem storedCache expired err', err);
|
|
969
968
|
if (err.name == 'ConditionalCheckFailedException') {
|
|
@@ -977,11 +976,14 @@ async function checkUniqueRequestProcessing(
|
|
|
977
976
|
} else if (existingRecord[uniqueRequestIdFieldName] !== uniqueRequestId) {
|
|
978
977
|
|
|
979
978
|
// when another request/uniqueRequestId need to stop process
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
979
|
+
return ["stop", existingRecord];
|
|
980
|
+
|
|
981
|
+
} else if (existingRecord[uniqueRequestIdFieldName] == uniqueRequestId) {
|
|
983
982
|
|
|
984
|
-
|
|
983
|
+
// if existingRecord[uniqueRequestIdFieldName] == uniqueRequestId then return "process
|
|
984
|
+
return [returnStatus, existingRecord];
|
|
985
|
+
|
|
986
|
+
}
|
|
985
987
|
|
|
986
988
|
} // end loop 2 times
|
|
987
989
|
//should never get here
|