From 304bf1acfe6b8a377468e1b0334b9791c154f894 Mon Sep 17 00:00:00 2001 From: Steven Oderayi Date: Thu, 5 Mar 2020 17:05:49 +0100 Subject: [PATCH] Hotfix: Revert #1178 changes (#161) * Revert #1178 changes. Update depenedencies. Bump version * Undo version bump --- package-lock.json | 18 +++++++++--------- package.json | 2 +- src/model/quotes.js | 9 --------- 3 files changed, 10 insertions(+), 19 deletions(-) diff --git a/package-lock.json b/package-lock.json index 8b68a091..1a5c8ce4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9664,9 +9664,9 @@ "dev": true }, "json-parse-even-better-errors": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.0.1.tgz", - "integrity": "sha512-XFY2Mbnmg+8r7MRsxfArVkZcfjxGlF/NjM3LsPXVeCX/GBF/1FTCv+idHBYC4qLPtK7q8HC8bapLoWqnhP/bXw==", + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.2.0.tgz", + "integrity": "sha512-2tLgY7LRNZ9Hd6gmCuBG5/OjRHQpSgJQqJoYyLLOhUgn8LdOYrjaZLcxkWnDads+AD/haWWioPNziXQcgvQJ/g==", "dev": true }, "json-parse-helpfulerror": { @@ -10104,9 +10104,9 @@ } }, "make-fetch-happen": { - "version": "8.0.2", - "resolved": "https://registry.npmjs.org/make-fetch-happen/-/make-fetch-happen-8.0.2.tgz", - "integrity": "sha512-jRqI9zjLyz8ufXfLSbEObJ6a8sv8geeKYEPFpI+b39JjYU14MZtCiJGazSWPZMjCm7161b4r57N/na5fBXpooQ==", + "version": "8.0.3", + "resolved": "https://registry.npmjs.org/make-fetch-happen/-/make-fetch-happen-8.0.3.tgz", + "integrity": "sha512-3ulUor6Xf8g+T0x4vvsV6mIYchThPR6sl2J3lSRF9I5ygI5/qScRnDToTLRMNXPlnB6cpO2cfQ+r088T7GYwxA==", "dev": true, "requires": { "agentkeepalive": "^4.1.0", @@ -10646,9 +10646,9 @@ } }, "npm-check-updates": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/npm-check-updates/-/npm-check-updates-4.0.3.tgz", - "integrity": "sha512-m0XrBr+n/tKrNqJskPyddUTpmdqvL/9ePH6K8AsTnx1Vt3R6Lk0OgwH1d2QCV/3us6KyT2abnpN3zsYwzU8yCQ==", + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/npm-check-updates/-/npm-check-updates-4.0.4.tgz", + "integrity": "sha512-o1Db+kfi8Vvs345Xxpn+3WSUJtLa85F2hMF6v6kYfQuvTulsphvDzgbiVkp4vEKC8+BQETCag730XPJudYf4mA==", "dev": true, "requires": { "chalk": "^3.0.0", diff --git a/package.json b/package.json index 4bd86dea..389e6801 100644 --- a/package.json +++ b/package.json @@ -82,7 +82,7 @@ "jest": "25.1.0", "jest-junit": "10.0.0", "npm-audit-resolver": "2.2.0", - "npm-check-updates": "4.0.3", + "npm-check-updates": "4.0.4", "nyc": "15.0.0", "pre-commit": "1.2.2", "proxyquire": "2.1.3", diff --git a/src/model/quotes.js b/src/model/quotes.js index 88606a73..898219ae 100644 --- a/src/model/quotes.js +++ b/src/model/quotes.js @@ -163,15 +163,6 @@ class QuotesModel { throw ErrorHandler.CreateInternalServerFSPIOPError('Missing quoteRequest', null, fspiopSource) } - // We need to validate that the FSP Ids in the headers and payload match - if (fspiopSource !== quoteRequest.payer.partyIdInfo.fspId) { - throw ErrorHandler.CreateFSPIOPError(ErrorHandler.Enums.FSPIOPErrorCodes.VALIDATION_ERROR, '"fspiop-source" header does not match the payer FSP ID', null, fspiopSource) - } - - if (fspiopDestination !== quoteRequest.payee.partyIdInfo.fspId) { - throw ErrorHandler.CreateFSPIOPError(ErrorHandler.Enums.FSPIOPErrorCodes.VALIDATION_ERROR, '"fspiop-destination" header does not match the payee FSP ID', null, fspiopSource) - } - await this.db.getParticipant(fspiopSource, LOCAL_ENUM.PAYER_DFSP) await this.db.getParticipant(fspiopDestination, LOCAL_ENUM.PAYEE_DFSP) }