mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
feat(core): support creating cloud workspaces to different servers (#9006)
This commit is contained in:
@@ -23,14 +23,15 @@ export class WorkspaceTransformService extends Service {
|
||||
*/
|
||||
transformLocalToCloud = async (
|
||||
local: Workspace,
|
||||
accountId: string
|
||||
accountId: string,
|
||||
flavour: string
|
||||
): Promise<WorkspaceMetadata> => {
|
||||
assertEquals(local.flavour, 'local');
|
||||
|
||||
const localDocStorage = local.engine.doc.storage.behavior;
|
||||
|
||||
const newMetadata = await this.factory.create(
|
||||
'affine-cloud',
|
||||
flavour,
|
||||
async (docCollection, blobStorage, docStorage) => {
|
||||
const rootDocBinary = await localDocStorage.doc.get(
|
||||
local.docCollection.doc.guid
|
||||
|
||||
Reference in New Issue
Block a user