improvement: flush after every request that manipulates the db
This commit is contained in:
@@ -87,6 +87,8 @@ pub async fn set_room_visibility_route(
|
||||
room::Visibility::Private => db.rooms.set_public(&body.room_id, false)?,
|
||||
}
|
||||
|
||||
db.flush().await?;
|
||||
|
||||
Ok(set_room_visibility::Response.into())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user