removed unused parameter parsing
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import { BaseEndpoint } from './base';
|
||||
import { BelongingMovies, Keyword, KeywordsOptions } from '../types';
|
||||
import { parseOptions } from '../utils';
|
||||
|
||||
const BASE_Keyword = '/keyword';
|
||||
|
||||
@@ -14,7 +13,6 @@ export class KeywordsEndpoint extends BaseEndpoint {
|
||||
}
|
||||
|
||||
async belongingMovies(keywordId : number, options?: KeywordsOptions): Promise<BelongingMovies> {
|
||||
const params = parseOptions(options);
|
||||
return await this.api.get<BelongingMovies>(`${BASE_Keyword}/${keywordId}/movies?${params}`);
|
||||
return await this.api.get<BelongingMovies>(`${BASE_Keyword}/${keywordId}/movies`, options);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user