URLHelper now uses the auth token for old URLs, if present
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user