mirror of
https://git.asonix.dog/asonix/pict-rs
synced 2024-11-20 11:21:14 +00:00
Fix 'force' paramter in prine query
This commit is contained in:
parent
dd01548309
commit
77c1c90572
1 changed files with 2 additions and 2 deletions
|
@ -1342,7 +1342,7 @@ struct PruneResponse {
|
|||
|
||||
#[derive(Debug, serde::Deserialize)]
|
||||
struct PruneQuery {
|
||||
force: bool,
|
||||
force: Serde<bool>,
|
||||
}
|
||||
|
||||
#[tracing::instrument(name = "Prune missing identifiers", skip(state))]
|
||||
|
@ -1370,7 +1370,7 @@ async fn prune_missing<S>(
|
|||
|
||||
let started = state.repo.get("prune-missing-started").await?.is_some();
|
||||
|
||||
if !started || query.is_some_and(|q| q.force) {
|
||||
if !started || query.is_some_and(|q| *q.force) {
|
||||
queue::prune_missing(&state.repo).await?;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue