feat(#31): RFollow mammon location rename in the generated client
This commit is contained in:
1 parent
52addba909
commit
777cb74574
4 files changed
+228
-226
No files matched your search
@@ -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