Skip to content

Commit

Permalink
Hotfix: Revert #1178 changes (#161)
Browse files Browse the repository at this point in the history
* Revert #1178 changes. Update depenedencies. Bump version

* Undo version bump
  • Loading branch information
oderayi authored Mar 5, 2020
1 parent 202a5e2 commit 304bf1a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 19 deletions.
18 changes: 9 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
9 changes: 0 additions & 9 deletions src/model/quotes.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 304bf1a

Please sign in to comment.