mirror of
https://github.com/anidl/multi-downloader-nx.git
synced 2026-04-21 00:12:05 +00:00
fixed type error
This commit is contained in:
parent
d2591e78b2
commit
ee6f3f50f7
1 changed files with 2 additions and 2 deletions
|
|
@ -113,7 +113,7 @@ export default class Crunchy implements ServiceClass {
|
|||
}
|
||||
else if(argv.new){
|
||||
await this.refreshToken();
|
||||
await this.getNewlyAdded(argv.page, argv['search-type'], argv.raw, argv.rawoutput);
|
||||
await this.getNewlyAdded(argv.page!, argv['search-type'], argv.raw, argv.rawoutput);
|
||||
}
|
||||
else if(argv.search && argv.search.length > 2){
|
||||
await this.refreshToken();
|
||||
|
|
@ -1028,7 +1028,7 @@ export default class Crunchy implements ServiceClass {
|
|||
}
|
||||
}
|
||||
|
||||
public async getNewlyAdded(page?: number, type: string, raw: boolean = false, rawoutput?: string) {
|
||||
public async getNewlyAdded(page: number, type: string, raw: boolean = false, rawoutput?: string) {
|
||||
if(!this.token.access_token){
|
||||
console.error('Authentication required!');
|
||||
return;
|
||||
|
|
|
|||
Loading…
Reference in a new issue