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

This commit is contained in:
EYHN committed 2025-03-25 08:15:23 +00:00
1 parent 583bbf3463
commit dda3103d1b
5 files changed
+27 -8

No files matched your search

@@ -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,
},
},
},
@@ -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,
},
},
},