diff --git a/src/file.ts b/src/file.ts index 1586138..37d5729 100644 --- a/src/file.ts +++ b/src/file.ts @@ -41,7 +41,7 @@ export const getFileUrl = async (type: FileType, index = 0): Promise => }, }) - 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 => } return new Promise((resolve) => { - return fn(scoreinfo.id, index, resolve, magic as string) + return fn(undefined, scoreinfo.id, index, resolve, magic as string) }) }