mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-28 15:55:19 +08:00
Merge branch 'feat/cloud-sync-saika' into feat/datacenter
This commit is contained in:
@@ -9,7 +9,7 @@ import assert from 'assert';
|
|||||||
import { getLogger } from './logger';
|
import { getLogger } from './logger';
|
||||||
import { applyUpdate, encodeStateAsUpdate } from 'yjs';
|
import { applyUpdate, encodeStateAsUpdate } from 'yjs';
|
||||||
import { createBlocksuiteWorkspace } from './utils/index.js';
|
import { createBlocksuiteWorkspace } from './utils/index.js';
|
||||||
import { MessageCenter } from './message/message';
|
import { MessageCenter } from './message';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @class DataCenter
|
* @class DataCenter
|
||||||
@@ -309,6 +309,7 @@ export class DataCenter {
|
|||||||
applyUpdate(newWorkspace.doc, encodeStateAsUpdate(workspace.doc));
|
applyUpdate(newWorkspace.doc, encodeStateAsUpdate(workspace.doc));
|
||||||
assert(newWorkspace, 'Create workspace failed');
|
assert(newWorkspace, 'Create workspace failed');
|
||||||
await currentProvider.deleteWorkspace(workspace.room);
|
await currentProvider.deleteWorkspace(workspace.room);
|
||||||
|
return newWorkspace.room;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ import { WebsocketProvider } from './sync.js';
|
|||||||
import { getApis } from './apis/index.js';
|
import { getApis } from './apis/index.js';
|
||||||
import type { Apis, WorkspaceDetail, Callback } from './apis';
|
import type { Apis, WorkspaceDetail, Callback } from './apis';
|
||||||
import { setDefaultAvatar } from '../utils.js';
|
import { setDefaultAvatar } from '../utils.js';
|
||||||
import { MessageCode } from 'src/message/code.js';
|
import { MessageCode } from 'src/message';
|
||||||
|
|
||||||
export interface AffineProviderConstructorParams
|
export interface AffineProviderConstructorParams
|
||||||
extends ProviderConstructorParams {
|
extends ProviderConstructorParams {
|
||||||
|
|||||||
Reference in New Issue
Block a user