diff --git a/Cargo.lock b/Cargo.lock index d24bd782a..5a17f70f3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -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", diff --git a/Cargo.toml b/Cargo.toml index 93aae71bc..d90f1ad8c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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"] } diff --git a/bin/core/src/requests/write/alerter.rs b/bin/core/src/requests/write/alerter.rs index e0c29014a..4d2e673d3 100644 --- a/bin/core/src/requests/write/alerter.rs +++ b/bin/core/src/requests/write/alerter.rs @@ -170,7 +170,7 @@ impl Resolve for State { .alerters .update_one( &id, - mungos::Update::Set(doc! { "config": to_bson(&config)? }), + mungos::Update::FlattenSet(doc! { "config": to_bson(&config)? }), ) .await?; diff --git a/bin/core/src/requests/write/build.rs b/bin/core/src/requests/write/build.rs index 29e938135..0449d38f9 100644 --- a/bin/core/src/requests/write/build.rs +++ b/bin/core/src/requests/write/build.rs @@ -251,7 +251,7 @@ impl Resolve 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")?; diff --git a/bin/core/src/requests/write/builder.rs b/bin/core/src/requests/write/builder.rs index 76884db4b..3007e074a 100644 --- a/bin/core/src/requests/write/builder.rs +++ b/bin/core/src/requests/write/builder.rs @@ -200,7 +200,7 @@ impl Resolve for State { .builders .update_one( &id, - mungos::Update::Set(doc! { "config": to_bson(&config)? }), + mungos::Update::FlattenSet(doc! { "config": to_bson(&config)? }), ) .await?; diff --git a/bin/core/src/requests/write/deployment.rs b/bin/core/src/requests/write/deployment.rs index e80da71f4..c91c1a163 100644 --- a/bin/core/src/requests/write/deployment.rs +++ b/bin/core/src/requests/write/deployment.rs @@ -327,7 +327,7 @@ impl Resolve 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")?; diff --git a/bin/core/src/requests/write/repo.rs b/bin/core/src/requests/write/repo.rs index 6821b039a..62df270ad 100644 --- a/bin/core/src/requests/write/repo.rs +++ b/bin/core/src/requests/write/repo.rs @@ -273,7 +273,7 @@ impl Resolve 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")?; diff --git a/bin/core/src/requests/write/server.rs b/bin/core/src/requests/write/server.rs index 6a72ec29e..8a77549c9 100644 --- a/bin/core/src/requests/write/server.rs +++ b/bin/core/src/requests/write/server.rs @@ -153,7 +153,7 @@ impl Resolve 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")?;