filter market groups

This commit is contained in:
2023-10-24 10:21:10 +02:00
parent ac6c51a714
commit 9dd60ae054

View File

@@ -29,6 +29,29 @@ export const getMarketTypes = async (types: (string | number)[]): Promise<Market
}))).data;
}
const blueprintMarketGrous = [ // TODO add all groups
2,
2157,
2159,
2339,
2160,
211,
1016,
339,
2290,
357,
1530,
359,
1531,
1532,
1533,
358
]
export const searchMarketTypes = async (search: string): Promise<MarketType[]> => {
return (await apiAxiosInstance.post<MarketType[]>("/sde/types/search", [{ name_i: search }])).data;
return (await apiAxiosInstance.post<MarketType[]>("/sde/types/search", [{
name__i: search,
marketgroup_id__not: null,
marketgroup_id__not__in: blueprintMarketGrous,
}])).data;
}