mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-22 08:47:10 +08:00
fix(workspace): dont upgrade subdoc on cloud (#5382)
This commit is contained in:
@@ -49,7 +49,8 @@ export class WorkspaceUpgradeController {
|
||||
|
||||
checkIfNeedUpgrade() {
|
||||
const needUpgrade = !!checkWorkspaceCompatibility(
|
||||
this.workspace.blockSuiteWorkspace
|
||||
this.workspace.blockSuiteWorkspace,
|
||||
this.workspace.flavour === WorkspaceFlavour.AFFINE_CLOUD
|
||||
);
|
||||
this.status = {
|
||||
...this.status,
|
||||
@@ -69,7 +70,8 @@ export class WorkspaceUpgradeController {
|
||||
await this.workspace.engine.sync.waitForSynced();
|
||||
|
||||
const step = checkWorkspaceCompatibility(
|
||||
this.workspace.blockSuiteWorkspace
|
||||
this.workspace.blockSuiteWorkspace,
|
||||
this.workspace.flavour === WorkspaceFlavour.AFFINE_CLOUD
|
||||
);
|
||||
|
||||
if (!step) {
|
||||
|
||||
Reference in New Issue
Block a user