feat(core): desktop multiple server support (#8979)

This commit is contained in:
EYHN
2024-12-03 05:51:09 +00:00
parent af81c95b85
commit 8963826463
137 changed files with 2052 additions and 1694 deletions

View File

@@ -1,5 +1,4 @@
import { DebugLogger } from '@affine/debug';
import { WorkspaceFlavour } from '@affine/env/workspace';
import type { WorkspaceService } from '@toeverything/infra';
import {
backoffRetry,
@@ -34,10 +33,7 @@ export class WorkspacePermission extends Entity {
revalidate = effect(
exhaustMap(() => {
return fromPromise(async signal => {
if (
this.workspaceService.workspace.flavour ===
WorkspaceFlavour.AFFINE_CLOUD
) {
if (this.workspaceService.workspace.flavour !== 'local') {
return await this.store.fetchIsOwner(
this.workspaceService.workspace.id,
signal