feat(nbstore): allow polling protocol (#11160)

This commit is contained in:
EYHN
2025-03-25 08:15:22 +00:00
parent 583bbf3463
commit dda3103d1b
5 changed files with 27 additions and 8 deletions

View File

@@ -1,3 +1,4 @@
import { ServerDeploymentType } from '@affine/graphql';
import {
IndexedDBDocStorage,
IndexedDBDocSyncStorage,
@@ -64,6 +65,9 @@ export class UserDBEngine extends Entity<{
id: this.userId,
serverBaseUrl: serverService.server.baseUrl,
type: 'userspace',
isSelfHosted:
serverService.server.config$.value.type ===
ServerDeploymentType.Selfhosted,
},
},
},

View File

@@ -4,6 +4,7 @@ import {
deleteWorkspaceMutation,
getWorkspaceInfoQuery,
getWorkspacesQuery,
ServerDeploymentType,
} from '@affine/graphql';
import type {
BlobStorage,
@@ -468,6 +469,9 @@ class CloudWorkspaceFlavourProvider implements WorkspaceFlavourProvider {
type: 'workspace',
id: workspaceId,
serverBaseUrl: this.server.serverMetadata.baseUrl,
isSelfHosted:
this.server.config$.value.type ===
ServerDeploymentType.Selfhosted,
},
},
blob: {
@@ -483,6 +487,9 @@ class CloudWorkspaceFlavourProvider implements WorkspaceFlavourProvider {
type: 'workspace',
id: workspaceId,
serverBaseUrl: this.server.serverMetadata.baseUrl,
isSelfHosted:
this.server.config$.value.type ===
ServerDeploymentType.Selfhosted,
},
},
},