mirror of
https://github.com/colanode/colanode.git
synced 2025-12-29 00:25:03 +01:00
Public workspace create event on sync
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user