Skip to content

Commit

Permalink
Update unstable API endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
tfedor committed Aug 24, 2024
1 parent 1d59f1f commit 0efeb7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/js/Background/Modules/IsThereAnyDeal/ITADApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export default class ITADApi extends Api implements MessageHandlerInterface {
* @return Promise<Map<string,string>> Map<steamId, itadId>
*/
private async fetchSteamIds(gids: string[]): Promise<Map<string, string>> {
const url = this.getUrl("unstable/id-lookup/shop/61/v2");
const url = this.getUrl("lookup/shop/61/id/v1");
let obj = await this.fetchJson<Record<string, string[]|null>>(url, {
method: "POST",
headers: {"content-type": "application/json"},
Expand All @@ -77,7 +77,7 @@ export default class ITADApi extends Api implements MessageHandlerInterface {
}

private async fetchGameIds(steamIds: string[]): Promise<Map<string, string>> {
const url = this.getUrl("unstable/id-lookup/itad/61/v2");
const url = this.getUrl("lookup/id/shop/61/v1");
let obj = await this.fetchJson<Record<string, string|null>>(url, {
method: "POST",
headers: {"content-type": "application/json"},
Expand Down

0 comments on commit 0efeb7e

Please sign in to comment.