From 9585947c85f99c82edcaa81e63bdb706e1d07b89 Mon Sep 17 00:00:00 2001 From: "alejandro.bulgaris@qcif.edu.au" Date: Wed, 3 Jul 2024 07:29:21 +0000 Subject: [PATCH] Fix vocab service axios configuration for findInExternalService method --- typescript/api/services/VocabService.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/typescript/api/services/VocabService.ts b/typescript/api/services/VocabService.ts index 37d8924e8..599b5e176 100644 --- a/typescript/api/services/VocabService.ts +++ b/typescript/api/services/VocabService.ts @@ -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; } }