fix: get file url

This commit is contained in:
Xmader 2020-11-13 00:26:39 -05:00
parent 17ef255a09
commit 0764117544
No known key found for this signature in database
GPG Key ID: A20B97FB9EB730E4
1 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,7 @@ export const getFileUrl = async (type: FileType, index = 0): Promise<string> =>
},
})
const fn: (id: number, index: number, cb: (url: string) => any, magic: string) => string = fileUrlModule.a
const fn: (_, id: number, index: number, cb: (url: string) => any, magic: string) => string = fileUrlModule.a
if (magic instanceof Promise) {
// force to retrieve the MAGIC
@ -51,6 +51,6 @@ export const getFileUrl = async (type: FileType, index = 0): Promise<string> =>
}
return new Promise((resolve) => {
return fn(scoreinfo.id, index, resolve, magic as string)
return fn(undefined, scoreinfo.id, index, resolve, magic as string)
})
}