From 6fe03a86a14c650a1efe8b4a7512269fa80c02ae Mon Sep 17 00:00:00 2001 From: Lucas Werkmeister Date: Fri, 25 Nov 2022 15:42:00 +0100 Subject: [PATCH] Remove searchApiUrl / domain from fetchByTitle() Change-Id: I45e536f61e6cba1994702222ee3817dcae3c1fc7 Depends-On: I0d52e407c12b3fbf80cd36ed66c67da4cba9acbd --- repo/resources/wikibase.vector.searchClient.js | 2 +- repo/tests/jest/wikibase.vector.searchClient.spec.js | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/repo/resources/wikibase.vector.searchClient.js b/repo/resources/wikibase.vector.searchClient.js index 5fd8458fe88..7fbbd443c97 100644 --- a/repo/resources/wikibase.vector.searchClient.js +++ b/repo/resources/wikibase.vector.searchClient.js @@ -53,7 +53,7 @@ } const vectorSearchClient = { - fetchByTitle: ( q, _domain, limit = 10, _showDescription = true ) => { + fetchByTitle: ( q, limit = 10, _showDescription = true ) => { return fetchResults( q, limit ); } }; diff --git a/repo/tests/jest/wikibase.vector.searchClient.spec.js b/repo/tests/jest/wikibase.vector.searchClient.spec.js index 6ec6ac39c35..84eba4c6902 100644 --- a/repo/tests/jest/wikibase.vector.searchClient.spec.js +++ b/repo/tests/jest/wikibase.vector.searchClient.spec.js @@ -66,7 +66,6 @@ describe( 'Vector Search Client', () => { const apiController = vectorSearchClient.fetchByTitle( exampleSearchString, - '/w/rest.php', // should be ignored by us vectorLimit, true );