Skip to content

Commit da928c8

Browse files
committed
fix: download route file name
1 parent 2fd330d commit da928c8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/storage/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,6 @@ export const useStorageAdapter = createSingletonPromise(async () => {
230230
}
231231
})
232232

233-
function createLocalDownloadUrl(objectName: string) {
234-
return `${ENV.API_BASE_URL}/download/${randomBytes(64).toString('hex')}/${objectName}`
233+
function createLocalDownloadUrl(cacheFileName: CacheFileName) {
234+
return `${ENV.API_BASE_URL}/download/${randomBytes(64).toString('hex')}/${cacheFileName}`
235235
}

0 commit comments

Comments
 (0)