Skip to content

Commit

Permalink
fix: Value Type on callout. (adempiere#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
EdwinBetanc0urt authored Nov 30, 2022
1 parent 9f96b06 commit a94d88c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"license": "MIT",
"dependencies": {
"@2fd/graphdoc": "^2.4.0",
"@adempiere/grpc-api": "3.6.2",
"@adempiere/grpc-api": "3.6.3",
"@adempiere/grpc-web-store-api": "1.5.7",
"@elastic/elasticsearch": "7.14.0",
"@google-cloud/storage": "^3.0.3",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,9 @@ module.exports = ({ config }) => {
* Details:https://sfa-docs.now.sh/guide/default-modules/api.html#get-vsbridgeuserorder-history
*/
api.post('/run-callout', (req, res) => {
const ServiceApi = require('@adempiere/grpc-api/src/services/userInterface');
const service = new ServiceApi(config);

if (req.body) {
service.runCallout({
token: req.query.token,
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@
striptags "^3.0.1"
word-wrap "^1.2.1"

"@adempiere/[email protected].2":
version "3.6.2"
resolved "https://registry.yarnpkg.com/@adempiere/grpc-api/-/grpc-api-3.6.2.tgz#f0682e50cfcc67d7e7ebc866b7c129953960aac2"
integrity sha512-4EoSVMbAfr5W2OOUg5EwZuBmq1DmZFq7R54que/dUrZDAbfFNX84RZiBxpgmbYiZf0t7nQm4BfBSKhdHLYGSiQ==
"@adempiere/[email protected].3":
version "3.6.3"
resolved "https://registry.yarnpkg.com/@adempiere/grpc-api/-/grpc-api-3.6.3.tgz#dc35b1e0d375f2da334b89500eb39cbcedf4274f"
integrity sha512-5DZN3t9RcsFO9YxoTagtp8p9Ql8ZvOSe2qXUn78rNqXX2S207urROrrsX4XV6j4m6DQjNaXtN2uHhZDrkNPkFQ==
dependencies:
"@grpc/grpc-js" "1.7.0"
google-protobuf "3.21.0"
Expand Down

0 comments on commit a94d88c

Please sign in to comment.