Merge branch 'next' of https://github.com/mbecker20/monitor into next

This commit is contained in:
karamvir
2023-08-05 22:45:19 -07:00
8 changed files with 9 additions and 9 deletions

4
Cargo.lock generated
View File

@@ -1966,9 +1966,9 @@ dependencies = [
[[package]]
name = "mungos"
version = "0.4.15"
version = "0.4.17"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "425c6fb5e929046567f42c21c5ce7a3b2915ad1c14b29db0fca3ba39d2fbaf22"
checksum = "7085594072f51f1505fe7846cbc3ea3279b2a05060475539c94b6402d36f1c03"
dependencies = [
"anyhow",
"async-trait",

View File

@@ -26,7 +26,7 @@ derive_variants = "0.1.1"
make_option = "0.1.3"
resolver_api = "0.1.6"
parse_csl = "0.1.0"
mungos = "0.4.15"
mungos = "0.4.17"
svi = "0.1.4"
# external
tokio = { version = "1.29", features = ["full"] }

View File

@@ -170,7 +170,7 @@ impl Resolve<UpdateAlerter, RequestUser> for State {
.alerters
.update_one(
&id,
mungos::Update::Set(doc! { "config": to_bson(&config)? }),
mungos::Update::FlattenSet(doc! { "config": to_bson(&config)? }),
)
.await?;

View File

@@ -251,7 +251,7 @@ impl Resolve<UpdateBuild, RequestUser> for State {
.builds
.update_one(
&build.id,
mungos::Update::Set(doc! { "config": to_bson(&config)? }),
mungos::Update::FlattenSet(doc! { "config": to_bson(&config)? }),
)
.await
.context("failed to update build on database")?;

View File

@@ -200,7 +200,7 @@ impl Resolve<UpdateBuilder, RequestUser> for State {
.builders
.update_one(
&id,
mungos::Update::Set(doc! { "config": to_bson(&config)? }),
mungos::Update::FlattenSet(doc! { "config": to_bson(&config)? }),
)
.await?;

View File

@@ -327,7 +327,7 @@ impl Resolve<UpdateDeployment, RequestUser> for State {
.deployments
.update_one(
&id,
mungos::Update::Set(doc! { "config": to_bson(&config)? }),
mungos::Update::FlattenSet(doc! { "config": to_bson(&config)? }),
)
.await
.context("failed to update server on mongo")?;

View File

@@ -273,7 +273,7 @@ impl Resolve<UpdateRepo, RequestUser> for State {
.repos
.update_one(
&repo.id,
mungos::Update::Set(doc! { "config": to_bson(&config)? }),
mungos::Update::FlattenSet(doc! { "config": to_bson(&config)? }),
)
.await
.context("failed to update repo on database")?;

View File

@@ -153,7 +153,7 @@ impl Resolve<UpdateServer, RequestUser> for State {
.servers
.update_one(
&id,
mungos::Update::Set(doc! { "config": to_bson(&config)? }),
mungos::Update::FlattenSet(doc! { "config": to_bson(&config)? }),
)
.await
.context("failed to update server on mongo")?;