File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -156,14 +156,12 @@ export class XivapiService {
156156 return this . request < any > ( `${ XivapiService . API_BASE_URL } /PatchList` , options ) ;
157157 }
158158
159- protected request < T > ( endpoint : string , params ?: XivapiOptions ) : Observable < T > {
160- const queryParams : HttpParams = this . prepareQueryString ( params ) ;
159+ protected request < T > ( endpoint : string , params ?: XivapiOptions , baseQueryString : HttpParams = new HttpParams ( ) ) : Observable < T > {
160+ const queryParams : HttpParams = this . prepareQueryString ( params , baseQueryString ) ;
161161 return this . http . get < any > ( endpoint , { params : queryParams } ) ;
162-
163162 }
164163
165- private prepareQueryString ( options ?: XivapiOptions ) : HttpParams {
166- const queryString : HttpParams = new HttpParams ( ) ;
164+ private prepareQueryString ( options ?: XivapiOptions , queryString : HttpParams = new HttpParams ( ) ) : HttpParams {
167165 if ( options === null || options === undefined ) {
168166 return queryString ;
169167 }
You can’t perform that action at this time.
0 commit comments