Skip to content

Commit

Permalink
fix: pricecheck url for redirects
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiTenno committed Dec 2, 2022
1 parent 45ba250 commit 5c703a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utilities/WorldStateClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export default class WorldStateClient {
if (!WorldStateClient.#warframes) {
(async function init() {
if (!WorldStateClient.#warframes) {
WorldStateClient.#warframes = await fetch(`${apiBase}/warframes?language=en`);
WorldStateClient.#warframes = await fetch(`${apiBase}/warframes/?language=en`);
}
})();
}
Expand Down Expand Up @@ -195,7 +195,7 @@ export default class WorldStateClient {
*/
async pricecheck(query, { type = 'attachment', platform = 'pc', language = 'en' }) {
this.#logger.silly(`pricechecking ${query}`);
const url = `${apiBase}/pricecheck/${type || 'attachment'}/${query}?language=${language || 'en'}&platform=${
const url = `${apiBase}/pricecheck/${type || 'attachment'}/${query}/?language=${language || 'en'}&platform=${
platform || 'pc'
}`;
this.#logger.info(`fetching ${url}`);
Expand Down

0 comments on commit 5c703a7

Please sign in to comment.