aboutsummaryrefslogtreecommitdiffstats
path: root/rust/src/api_wrappers.rs
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-08-30 16:52:03 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-08-30 16:52:03 -0700
commitcc11d5000910b5fd53e40bfd01056c0db60c35aa (patch)
treec1e520176b3ac88607e4b4cacc994ee0344aaaa8 /rust/src/api_wrappers.rs
parent8528f06157b0e60842c860f81e3f2a69aa07aae9 (diff)
downloadfatcat-cc11d5000910b5fd53e40bfd01056c0db60c35aa.tar.gz
fatcat-cc11d5000910b5fd53e40bfd01056c0db60c35aa.zip
editgroup parameter for batch inserts
Diffstat (limited to 'rust/src/api_wrappers.rs')
-rw-r--r--rust/src/api_wrappers.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/rust/src/api_wrappers.rs b/rust/src/api_wrappers.rs
index 4f126385..da6139d2 100644
--- a/rust/src/api_wrappers.rs
+++ b/rust/src/api_wrappers.rs
@@ -84,10 +84,11 @@ macro_rules! wrap_entity_handlers {
&self,
entity_list: &Vec<models::$model>,
autoaccept: Option<bool>,
+ editgroup: Option<String>,
_context: &Context,
) -> Box<Future<Item = $post_batch_resp, Error = ApiError> + Send> {
let conn = self.db_pool.get().expect("db_pool error");
- let ret = match conn.transaction(|| self.$post_batch_handler(entity_list, autoaccept.unwrap_or(false), &conn)) {
+ let ret = match conn.transaction(|| self.$post_batch_handler(entity_list, autoaccept.unwrap_or(false), editgroup, &conn)) {
Ok(edit) =>
$post_batch_resp::CreatedEntities(edit),
Err(Error(ErrorKind::Diesel(e), _)) =>