Skip to content

Commit 3c6bc88

Browse files
committed
Fixes Stall Listings Schema
1 parent d04ef2e commit 3c6bc88

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

src/lib/bridge/handlers/fetch_stall.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
import {SimpleHandler} from './main';
2-
import {Contract, User} from '../../types/float_market';
2+
import {Contract} from '../../types/float_market';
33
import {RequestType} from './types';
44

55
export interface FetchStallRequest {
66
steam_id64: string;
77
}
88

99
export interface FetchStallResponse {
10-
listings?: Contract[];
11-
user?: User;
10+
data?: Contract[];
1211
}
1312

1413
export interface FetchStallResponseError {

src/lib/components/inventory/selected_item_info.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export class SelectedItemInfo extends FloatElement {
7878
return;
7979
}
8080

81-
return (this.stall.listings || []).find((e) => e.item.asset_id === this.asset?.assetid);
81+
return (this.stall.data || []).find((e) => e.item.asset_id === this.asset?.assetid);
8282
}
8383

8484
protected render(): HTMLTemplateResult {

src/lib/services/stall_fetcher.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class StallFetcher extends SimpleCachedQueue<FetchStallRequest, FetchStallRespon
1212
return await ClientSend(FetchStall, req);
1313
} catch (e) {
1414
// Stub out to prevent future calls
15-
return {listings: []};
15+
return {data: []};
1616
}
1717
}
1818
}

0 commit comments

Comments
 (0)