URLHelper now uses the auth token for old URLs, if present
This commit is contained in:
@@ -105,7 +105,7 @@ const getStream = () => {
|
||||
// prettier-ignore
|
||||
// 'https://speckle.xyz/streams/da9e320dad/commits/5388ef24b8?c=%5B-7.66134,10.82932,6.41935,-0.07739,-13.88552,1.8697,0,1%5D'
|
||||
// Revit sample house (good for bim-like stuff with many display meshes)
|
||||
// 'https://speckle.xyz/streams/da9e320dad/commits/5388ef24b8'
|
||||
'https://speckle.xyz/streams/da9e320dad/commits/5388ef24b8'
|
||||
// 'https://latest.speckle.dev/streams/c1faab5c62/commits/ab1a1ab2b6'
|
||||
// 'https://speckle.xyz/streams/da9e320dad/commits/5388ef24b8'
|
||||
// 'https://latest.speckle.dev/streams/58b5648c4d/commits/60371ecb2d'
|
||||
@@ -392,7 +392,7 @@ const getStream = () => {
|
||||
// 'https://app.speckle.systems/projects/47bbaf594f/models/ef78e94f72'
|
||||
// 'https://app.speckle.systems/projects/47bbaf594f/models/de52414725f8937b1f0e2f550ef9ca52'
|
||||
// qGIS sRGB vertex colors
|
||||
'https://latest.speckle.systems/projects/5a6609a4b9/models/10f4931e8c'
|
||||
// 'https://latest.speckle.systems/projects/5a6609a4b9/models/10f4931e8c'
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
@@ -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