mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-25 19:15:03 +02:00
UBERF-4725 Migrate collaborative content (#5717)
Signed-off-by: Alexander Onnikov <Alexander.Onnikov@xored.com>
This commit is contained in:
+3
-2
@@ -8,8 +8,9 @@
|
||||
const token: string = getMetadata(presentation.metadata.Token) ?? ''
|
||||
|
||||
async function fetchCollabStats (tick: number): Promise<void> {
|
||||
const collaborator = getMetadata(presentation.metadata.CollaboratorApiUrl)
|
||||
await fetch(collaborator + `/api/v1/statistics?token=${token}`, {})
|
||||
const collaboratorUrl = getMetadata(presentation.metadata.CollaboratorUrl) ?? ''
|
||||
const collaboratorApiUrl = collaboratorUrl.replaceAll('wss://', 'https://').replace('ws://', 'http://')
|
||||
await fetch(collaboratorApiUrl + `/api/v1/statistics?token=${token}`, {})
|
||||
.then(async (json) => {
|
||||
dataCollab = await json.json()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user