diff options
Diffstat (limited to 'src/pipeline')
| -rw-r--r-- | src/pipeline/mod.rs | 2 | ||||
| -rw-r--r-- | src/pipeline/publish.rs | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/pipeline/mod.rs b/src/pipeline/mod.rs index 9e3c12a..0bd8f92 100644 --- a/src/pipeline/mod.rs +++ b/src/pipeline/mod.rs @@ -109,7 +109,7 @@ impl Ctx { .ok_or_else(|| Error::not_found("pkgbase for build"))?; let src = match build.candidate_id { Some(cid) => { - let c = crate::review::candidates::candidate_by_id(db, cid)? + let c = crate::review::reads::candidate(db, cid)? .ok_or_else(|| Error::not_found("candidate for build"))?; let snap = db::snapshot_by_id(db, c.snapshot_id)? .ok_or_else(|| Error::not_found("snapshot for candidate"))?; diff --git a/src/pipeline/publish.rs b/src/pipeline/publish.rs index dc9f918..190fb65 100644 --- a/src/pipeline/publish.rs +++ b/src/pipeline/publish.rs @@ -140,7 +140,7 @@ fn commit_release(ctx: &Ctx, collect: &Collect) -> Result<i64> { let pkgbase_id = ctx.pb.id; let candidate_id = ctx.build.candidate_id; let approval_id: Option<i64> = match candidate_id { - Some(cid) => crate::review::approve::approval_for(&ctx.db, cid)?.map(|(id, _)| id), + Some(cid) => crate::review::reads::approval(&ctx.db, cid)?.map(|(id, _)| id), None => None, }; let inherited = match ctx.build.kind.as_str() { @@ -172,7 +172,7 @@ fn commit_release(ctx: &Ctx, collect: &Collect) -> Result<i64> { _ => ctx .build .candidate_id - .and_then(|cid| crate::review::candidates::candidate_by_id(&ctx.db, cid).ok().flatten()) + .and_then(|cid| crate::review::reads::candidate(&ctx.db, cid).ok().flatten()) .and_then(|c| c.base_release_id), }; |
