ml-testing-toolkit 18.17.0-snapshot.7 → 18.17.0-snapshot.8
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
|
@@ -327,7 +327,10 @@ const generateAsyncCallback = async (item, context, req) => {
|
|
|
327
327
|
context.storedTransfers = {}
|
|
328
328
|
}
|
|
329
329
|
const isFxTransfer = fxTransferPathMatch.test(req.path)
|
|
330
|
-
|
|
330
|
+
let transferId = (req.payload && req.payload.transferId) || (req.payload && req.payload.commitRequestId)
|
|
331
|
+
if (!transferId && req.payload && req.payload.CdtTrfTxInf && req.payload.CdtTrfTxInf.PmtId && req.payload.CdtTrfTxInf.PmtId.TxId) {
|
|
332
|
+
transferId = req.payload.CdtTrfTxInf.PmtId.TxId
|
|
333
|
+
}
|
|
331
334
|
customLogger.logMessage('debug', 'Storing transfer for validation', { additionalData: { transferId }, request: req })
|
|
332
335
|
|
|
333
336
|
context.storedTransfers[transferId] = {
|