@opencrvs/toolkit 1.9.21 → 1.9.23-rc.0c2d925
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/events/index.js +2 -2
- package/package.json +1 -1
package/dist/events/index.js
CHANGED
|
@@ -5621,8 +5621,8 @@ function getActionRequests(actionType, actions) {
|
|
|
5621
5621
|
(action) => action.status === ActionStatus.Accepted
|
|
5622
5622
|
);
|
|
5623
5623
|
const request = filtered.find(
|
|
5624
|
-
(action) => action.status === ActionStatus.Requested
|
|
5625
|
-
);
|
|
5624
|
+
(action) => action.status === ActionStatus.Requested && action.id === accept?.originalActionId
|
|
5625
|
+
) ?? filtered.find((action) => action.status === ActionStatus.Requested);
|
|
5626
5626
|
const reject = filtered.find(
|
|
5627
5627
|
(action) => action.status === ActionStatus.Rejected
|
|
5628
5628
|
);
|