Public workspace create event on sync

This commit is contained in:
Hakan Shehu
2025-01-17 16:51:05 +01:00
parent 6adebb4cf3
commit 8587ebf704

View File

@@ -299,6 +299,11 @@ export class AccountService {
const mappedWorkspace = mapWorkspace(createdWorkspace);
await this.initWorkspace(mappedWorkspace);
eventBus.publish({
type: 'workspace_created',
workspace: mappedWorkspace,
});
} else {
const updatedWorkspace = await this.database
.updateTable('workspaces')