Skip to content
Permalink
Browse files

fix(marketboard): fixed wrong path for cross server requests

  • Loading branch information
Supamiu committed Apr 25, 2019
1 parent 013d813 commit be7654cf43c70d567e6de44ee0579f7279737084
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/xivapi.service.ts
@@ -241,7 +241,7 @@ export class XivapiService {
options: XivapiOptions = {}): Observable<{ [index: string]: MarketboardItem }> {
options.extraQueryParams = options.extraQueryParams || {};
options.extraQueryParams['dc'] = datacenter;
return this.request<{ [index: string]: MarketboardItem }>(`/market/items/${itemId}`, options);
return this.request<{ [index: string]: MarketboardItem }>(`/market/item/${itemId}`, options);
}

protected request<T>(endpoint: string, params?: XivapiOptions): Observable<T> {
@@ -278,7 +278,7 @@ export class XivapiService {
Object.keys(options.extraQueryParams)
.forEach(key => {
// @ts-ignore
queryString.set(key, options.extraQueryParams[key].toString());
queryString = queryString.set(key, options.extraQueryParams[key].toString());
});
}
return queryString;

0 comments on commit be7654c

Please sign in to comment.
You can’t perform that action at this time.