mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
feat(nbstore): allow polling protocol (#11160)
This commit is contained in:
@@ -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,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user