🏗️ Refactoring AirDC++ search method

This commit is contained in:
2023-11-28 20:43:47 -05:00
parent c3573e67e2
commit 96890ad1e4
2 changed files with 5 additions and 6 deletions

View File

@@ -115,11 +115,11 @@ export const search = async (data: SearchData, ADCPPSocket: any) => {
// The search can now be considered to be "complete" // The search can now be considered to be "complete"
// If there's an "in progress" indicator in the UI, that could also be disabled here // If there's an "in progress" indicator in the UI, that could also be disabled here
dispatch({ // dispatch({
type: AIRDCPP_HUB_SEARCHES_SENT, // type: AIRDCPP_HUB_SEARCHES_SENT,
searchInfo, // searchInfo,
instance, // instance,
}); // });
}, },
instance.id, instance.id,
); );

View File

@@ -89,7 +89,6 @@ export const AcquisitionPanel = (
}, []); }, []);
const getDCPPSearchResults = async (searchQuery) => { const getDCPPSearchResults = async (searchQuery) => {
console.log(hubs);
const manualQuery = { const manualQuery = {
query: { query: {
pattern: `${searchQuery.issueName}`, pattern: `${searchQuery.issueName}`,