Skip to content

Commit

Permalink
Merge branch 'hotfix/1.3.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
douglasrafael committed Apr 24, 2020
2 parents 51e42b9 + 7fc0db3 commit 7236e78
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "express-apigw-base-plugin",
"version": "1.3.0",
"version": "1.3.1",
"description": "Express Gateway Base Plugin",
"main": "manifest.js",
"author": "NUTES/UEPB",
Expand All @@ -20,7 +20,7 @@
"devDependencies": {
"chai": "^4.2.0",
"mocha": "^7.1.1",
"sinon": "^9.0.1",
"sinon": "^9.0.2",
"supertest": "^4.0.2",
"express-gateway": "^1.16.10"
}
Expand Down
5 changes: 4 additions & 1 deletion policies/delete-user/delete-user.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ module.exports = function (actionParams, userServiceGwTest, axiosTest) {

try {
// 1. Delete user in account service.
const responseAccount = await userService.delete(`${actionParams.urlDeleteService}/${userId}`)
const responseAccount = await userService.delete(
`${actionParams.urlDeleteService}/${userId}`,
{ headers: req.headers }
)

// 2. Find user at gateway and delete or skip if there is not.
await deleteUserGateway(userId)
Expand Down
8 changes: 4 additions & 4 deletions services/http-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ const instance = axios.create({
})

module.exports = {
post: function (url, credentials) {
return instance.post(url, credentials)
post: function (url, body, config) {
return instance.post(url, body, config)
},

delete: function (url) {
return instance.delete(url)
delete: function (url, config) {
return instance.delete(url, config)
}
}

0 comments on commit 7236e78

Please sign in to comment.