* Refresh workspace metadata from config and emit to subscribers. * Useful when external changes (like section assignment) modify workspace config.
(workspaceId: string)
| 4641 | * Useful when external changes (like section assignment) modify workspace config. |
| 4642 | */ |
| 4643 | async refreshAndEmitMetadata(workspaceId: string): Promise<void> { |
| 4644 | const metadata = await this.getInfo(workspaceId); |
| 4645 | if (metadata) { |
| 4646 | this.emit("metadata", { workspaceId, metadata }); |
| 4647 | } |
| 4648 | } |
| 4649 | |
| 4650 | async rename(workspaceId: string, newName: string): Promise<Result<{ newWorkspaceId: string }>> { |
| 4651 | try { |
no test coverage detected