summaryrefslogtreecommitdiffstats
path: root/src/pipeline/publish.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/pipeline/publish.rs')
-rw-r--r--src/pipeline/publish.rs4
1 files changed, 2 insertions, 2 deletions
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),
};