Add trader id to getItemPrices()

This commit is contained in:
Dev 2024-05-25 10:40:32 +01:00
parent e2dd677b40
commit 18a5c49812

View File

@ -202,6 +202,7 @@ export class DataCallbacks
sessionID: string, sessionID: string,
): IGetBodyResponseData<IGetItemPricesResponse> ): IGetBodyResponseData<IGetItemPricesResponse>
{ {
const traderId = url.replace("/client/items/prices/", "");
const handbookPrices = this.ragfairController.getStaticPrices(); const handbookPrices = this.ragfairController.getStaticPrices();
const response: IGetItemPricesResponse = { const response: IGetItemPricesResponse = {
supplyNextTime: 1672236024, // todo: get trader refresh time? supplyNextTime: 1672236024, // todo: get trader refresh time?
@ -214,6 +215,7 @@ export class DataCallbacks
/* eslint-enable @typescript-eslint/naming-convention */ /* eslint-enable @typescript-eslint/naming-convention */
}, },
}; };
return this.httpResponse.getBody(response); return this.httpResponse.getBody(response);
} }
} }