forked from github-starred/komodo
Merge branch 'next' of https://github.com/mbecker20/monitor into next
This commit is contained in:
4
Cargo.lock
generated
4
Cargo.lock
generated
@@ -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",
|
||||
|
||||
@@ -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"] }
|
||||
|
||||
@@ -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?;
|
||||
|
||||
|
||||
@@ -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")?;
|
||||
|
||||
@@ -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?;
|
||||
|
||||
|
||||
@@ -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")?;
|
||||
|
||||
@@ -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")?;
|
||||
|
||||
@@ -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")?;
|
||||
|
||||
Reference in New Issue
Block a user