Skip to content

Commit

Permalink
Fix vocab service axios configuration for findInExternalService method
Browse files Browse the repository at this point in the history
  • Loading branch information
alejandro-bulgaris-qcif committed Jul 3, 2024
1 parent f7b5b92 commit 9585947
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions typescript/api/services/VocabService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -270,17 +270,17 @@ export module Services {
};
sails.log.verbose(post);

let response = await axios(options);
let response = await axios(post);
return response.data;
} else {
const getSearch = {
method: sails.config.record.api.search.method,
method: sails.config.vocab.external[providerName].method,
url: url,
params: options
};
sails.log.verbose(getSearch);

let response = await axios(options);
let response = await axios(getSearch);
return response.data;
}
}
Expand Down

0 comments on commit 9585947

Please sign in to comment.