feat(#31): RFollow mammon location rename in the generated client
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import {universeApi} from '@/mammon/mammonService';
|
||||
import type {MarketLocationResponse} from '@/generated/mammon';
|
||||
import {locationApi} from '@/mammon/mammonService';
|
||||
import type {DockableLocationResponse} from '@/generated/mammon';
|
||||
|
||||
export type MarketLocation = MarketLocationResponse;
|
||||
export type MarketLocation = DockableLocationResponse;
|
||||
|
||||
const cache = new Map<number, MarketLocation>();
|
||||
|
||||
@@ -24,7 +24,7 @@ export const searchMarketLocations = async (search: string): Promise<MarketLocat
|
||||
if (search.length === 0) {
|
||||
return [];
|
||||
}
|
||||
const locations = await universeApi.searchLocations(search).then(r => r.data);
|
||||
const locations = await locationApi.searchLocations(search).then(r => r.data);
|
||||
locations.forEach(l => cache.set(l.id, l));
|
||||
return locations.toSorted((a, b) => hubRank(a.id) - hubRank(b.id));
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user