Skip to content

Commit

Permalink
Fix for batch requests endpoint (#22)
Browse files Browse the repository at this point in the history
* documentation fix

* version update

* fix for incorrect cache getting deleted
  • Loading branch information
rmothilal authored May 22, 2019
1 parent 8b22c85 commit 05f42bb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion 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
@@ -1,6 +1,6 @@
{
"name": "sims",
"version": "6.2.3",
"version": "6.2.4",
"description": "A super-simple fsp simulator",
"main": "src/index.js",
"author": "ModusBox",
Expand Down
2 changes: 1 addition & 1 deletion src/oracle/handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ exports.getRequestById = function (request, h) {
['success', 'fsp', 'operation', 'source', 'destination']
).startTimer()
const responseData = batchRequestCache.get(request.params.requestId)
requestsCache.del(request.params.requestId)
batchRequestCache.del(request.params.requestId)
histTimerEnd({ success: true, operation: 'getRequestById' })
return h.response(responseData).code(200)
}
Expand Down

0 comments on commit 05f42bb

Please sign in to comment.