mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-13 16:16:46 +08:00
chore: workspace name
This commit is contained in:
@@ -114,11 +114,6 @@ export class UserConfig extends ServiceBaseClass {
|
||||
return workspaceName;
|
||||
}
|
||||
|
||||
async getWorkspaceId(workspace: string): Promise<string> {
|
||||
const workspaceDbBlock = await this.getWorkspaceDbBlock(workspace);
|
||||
return workspaceDbBlock.id;
|
||||
}
|
||||
|
||||
async setWorkspaceName(workspace: string, workspaceName: string) {
|
||||
const workspaceDbBlock = await this.getWorkspaceDbBlock(workspace);
|
||||
workspaceDbBlock.setDecoration(WORKSPACE_CONFIG, workspaceName);
|
||||
|
||||
Reference in New Issue
Block a user