URLHelper now uses the auth token for old URLs, if present

This commit is contained in:
AlexandruPopovici
2024-07-18 11:42:57 +03:00
parent c2e8fb2082
commit b89ad00a5f
2 changed files with 10 additions and 7 deletions
+8 -5
View File
@@ -29,11 +29,14 @@ async function getOldResourceUrls(url: string, authToken?: string): Promise<stri
// supports commit based urls
if (url.includes('commits')) {
const commitId = url.split('/commits/')[1].substring(0, 10)
const objUrl = await getCommitReferencedObjectUrl({
origin: parsed.origin,
streamId,
commitId
})
const objUrl = await getCommitReferencedObjectUrl(
{
origin: parsed.origin,
streamId,
commitId
},
authToken
)
objsUrls.push(objUrl)
}