mirror of
https://github.com/hcengineering/platform.git
synced 2026-08-31 12:19:47 +02:00
QFIX: Restore in workspace service for old workspaces (#9241)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
@@ -468,13 +468,14 @@ export async function doRestoreWorkspace (
|
||||
notify?: (progress: number) => Promise<void>
|
||||
): Promise<boolean> {
|
||||
rootCtx.warn('\nRESTORE WORKSPACE ', {
|
||||
workspace: wsIds.uuid
|
||||
workspace: wsIds.uuid,
|
||||
dataId: wsIds.dataId
|
||||
})
|
||||
const ctx = rootCtx.newChild('doRestore', {})
|
||||
let pipeline: Pipeline | undefined
|
||||
try {
|
||||
const restoreIds = { uuid: bucketName as WorkspaceUuid, dataId: bucketName as WorkspaceDataId, url: '' }
|
||||
const storage = await createStorageBackupStorage(ctx, backupAdapter, restoreIds, wsIds.uuid)
|
||||
const storage = await createStorageBackupStorage(ctx, backupAdapter, restoreIds, wsIds.dataId ?? wsIds.uuid)
|
||||
const result: boolean = await ctx.with(
|
||||
'restore',
|
||||
{},
|
||||
|
||||
Reference in New Issue
Block a user