Skip to content

Commit

Permalink
uberf-8425: fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Alexey Zinoviev <[email protected]>
  • Loading branch information
lexiv0re committed Jan 15, 2025
1 parent 12004d5 commit fd6cf57
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
sizeToWidth
} from '@hcengineering/presentation'
import { Label, Spinner } from '@hcengineering/ui'
import { permissionsStore } from '@hcengineering/view-resources'
import WebIcon from './icons/Web.svelte'
import filesize from 'filesize'
import { createEventDispatcher, onMount } from 'svelte'
Expand Down
6 changes: 3 additions & 3 deletions plugins/setting-resources/src/components/Backup.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
const backupUrl = getMetadata(setting.metadata.BackupUrl) ?? ''
const token = getMetadata(presentation.metadata.Token) ?? ''
const owner = hasAccountRole(getCurrentAccount(), AccountRole.Owner)
const workspaceId = getMetadata(presentation.metadata.WorkspaceId) ?? ''
const workspaceUuid = getMetadata(presentation.metadata.WorkspaceUuid) ?? ''
let backupInfo:
| {
Expand Down Expand Up @@ -81,7 +81,7 @@
async function updateBackupInfo (): Promise<void> {
if (owner && backupUrl !== '') {
try {
const response = await fetch(`${backupUrl}/${workspaceId}/index.json`, {
const response = await fetch(`${backupUrl}/${workspaceUuid}/index.json`, {
method: 'GET',
headers: {
Authorization: `Bearer ${token}`
Expand Down Expand Up @@ -116,7 +116,7 @@
return ''
}
function getFileUrl (filename: string): string {
return `${backupUrl}/${workspaceId}/${filename}`
return `${backupUrl}/${workspaceUuid}/${filename}`
}
async function downloadFile (filename: string): Promise<void> {
Expand Down

0 comments on commit fd6cf57

Please sign in to comment.