Skip to content

Commit

Permalink
Update rw api integration lib to remove requestApplication from reque…
Browse files Browse the repository at this point in the history
…st data
  • Loading branch information
tiagojsag committed Jul 19, 2023
1 parent c2cde28 commit 146af4a
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 112 deletions.
2 changes: 0 additions & 2 deletions app/microservice/public-swagger.json

This file was deleted.

101 changes: 0 additions & 101 deletions app/microservice/register.json

This file was deleted.

1 change: 0 additions & 1 deletion app/microservice/swagger.json

This file was deleted.

3 changes: 0 additions & 3 deletions app/src/services/query.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,6 @@ class QueryService {
qs = { ...ctx.query };
delete qs.sql;
body = { ...ctx.request.body, sql: newSql };
delete body.requestApplication;
}
} else {
const newTableName = dataset.tableName;
Expand All @@ -200,7 +199,6 @@ class QueryService {
} else {
qs = { ...ctx.query };
body = { ...ctx.request.body, tableName: newTableName };
delete body.requestApplication;
}
}
logger.debug('isQuery - ctx.path', ctx.path);
Expand All @@ -215,7 +213,6 @@ class QueryService {
};

delete qs.loggedUser;
delete qs.requestApplication;
options.qs = qs;
if (ctx.method === 'GET') {
options.method = 'GET';
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"koa-simple-healthcheck": "^0.0.1",
"request": "2.88.0",
"request-promise": "4.2.2",
"rw-api-microservice-node": "5.0.0-rc.5",
"rw-api-microservice-node": "5.0.0-rc.6",
"sql2json": "2.0.6"
},
"lint-staged": {
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5107,10 +5107,10 @@ run-parallel@^1.1.9:
resolved "https://registry.yarnpkg.com/run-parallel/-/run-parallel-1.1.9.tgz#c9dd3a7cf9f4b2c4b6244e173a6ed866e61dd679"
integrity sha512-DEqnSRTDw/Tc3FXf49zedI638Z9onwUotBMiUFKmrO2sdFKIbXamXGQ3Axd4qgphxKB4kw/qP1w5kTxnfU1B9Q==

[email protected].5:
version "5.0.0-rc.5"
resolved "https://registry.yarnpkg.com/rw-api-microservice-node/-/rw-api-microservice-node-5.0.0-rc.5.tgz#e1eb2eddab34472de9ab638fba9127b5d476631b"
integrity sha512-P9F+Q31CMynFTylkKam4y7YpdOCz2096z0M+PNCkCZ2l22wUNfVdaPhODmyHG7KhAGhChRNbywGDhJFRrbmVeg==
[email protected].6:
version "5.0.0-rc.6"
resolved "https://registry.yarnpkg.com/rw-api-microservice-node/-/rw-api-microservice-node-5.0.0-rc.6.tgz#c2659d2db95e0b0066e8ff42516215be770bab47"
integrity sha512-ULN8J1Wmeo2+mptJF95lEu+cR9E549u/26kGEViK8+s2mAyfcI0in/Z6LA9HAPgCSb9jtSGZg3ExgX6Ob9tLYg==
dependencies:
"@koa/cors" "^3.4.3"
"@tiagojsag/fastly-promises" "^1.0.1"
Expand Down

0 comments on commit 146af4a

Please sign in to comment.