Push update

This commit is contained in:
Quentin 2020-12-15 13:23:22 +01:00
parent 3bc4d57a0f
commit 011ff87b5f

View file

@ -166,6 +166,7 @@ impl AdminRpcHandler {
if let BucketState::Present(state) = bucket.state.get_mut() { if let BucketState::Present(state) = bucket.state.get_mut() {
state.website.update(query.allow); state.website.update(query.allow);
self.garage.bucket_table.insert(&bucket).await?;
let msg = if query.allow { let msg = if query.allow {
format!("Website access allowed for {}", &query.bucket) format!("Website access allowed for {}", &query.bucket)
} else { } else {