diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2018-09-07 22:32:20 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2018-09-07 22:32:20 -0700 |
commit | fc2025b8db9e058d429136f382749ade52df326c (patch) | |
tree | fda56e22a8feed13797a0c885e0e5650cc225aa9 /rust/src/database_entity_crud.rs | |
parent | a6c487aa9767624519bb4fa01a3cc3df254cfc70 (diff) | |
download | fatcat-fc2025b8db9e058d429136f382749ade52df326c.tar.gz fatcat-fc2025b8db9e058d429136f382749ade52df326c.zip |
fixes after autoaccept merge
Diffstat (limited to 'rust/src/database_entity_crud.rs')
-rw-r--r-- | rust/src/database_entity_crud.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/rust/src/database_entity_crud.rs b/rust/src/database_entity_crud.rs index 3f13a27d..9a47c2de 100644 --- a/rust/src/database_entity_crud.rs +++ b/rust/src/database_entity_crud.rs @@ -3,7 +3,7 @@ use chrono; use database_models::*; use database_schema::*; use diesel::prelude::*; -use diesel::{self, insert_into}; +use diesel::insert_into; use errors::*; use fatcat_api::models::*; use serde_json; @@ -16,7 +16,7 @@ pub struct EditContext { pub editor_id: FatCatId, pub editgroup_id: FatCatId, pub extra_json: Option<serde_json::Value>, - pub autoapprove: bool, + pub autoaccept: bool, } /* One goal here is to abstract the non-entity-specific bits into generic traits or functions, @@ -155,7 +155,7 @@ macro_rules! generic_db_create_batch { .iter() .map(|rev_id| Self::IdentNewRow { rev_id: Some(rev_id.clone()), - is_live: edit_context.autoapprove, + is_live: edit_context.autoaccept, redirect_id: None, }) .collect::<Vec<Self::IdentNewRow>>(), @@ -650,7 +650,7 @@ impl EntityCrud for ReleaseEntity { .iter() .map(|rev_id| Self::IdentNewRow { rev_id: Some(rev_id.clone()), - is_live: edit_context.autoapprove, + is_live: edit_context.autoaccept, redirect_id: None, }) .collect::<Vec<Self::IdentNewRow>>(), |