Broadcast db changes
This commit is contained in:
parent
63a4948b87
commit
ed54a2391b
1 changed files with 24 additions and 5 deletions
|
|
@ -143,5 +143,10 @@ async fn internal_create_document(
|
|||
.context("Failed to commit successful transaction")
|
||||
.map_err(server_error)?;
|
||||
|
||||
state
|
||||
.broadcasts
|
||||
.send(vault_id, new_version.clone().into())
|
||||
.await?;
|
||||
|
||||
Ok(Json(new_version.into()))
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue