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/api_wrappers.rs | |
parent | a6c487aa9767624519bb4fa01a3cc3df254cfc70 (diff) | |
download | fatcat-fc2025b8db9e058d429136f382749ade52df326c.tar.gz fatcat-fc2025b8db9e058d429136f382749ade52df326c.zip |
fixes after autoaccept merge
Diffstat (limited to 'rust/src/api_wrappers.rs')
-rw-r--r-- | rust/src/api_wrappers.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rust/src/api_wrappers.rs b/rust/src/api_wrappers.rs index 6272814e..faafe984 100644 --- a/rust/src/api_wrappers.rs +++ b/rust/src/api_wrappers.rs @@ -61,7 +61,7 @@ macro_rules! wrap_entity_handlers { _context: &Context, ) -> Box<Future<Item = $post_resp, Error = ApiError> + Send> { let conn = self.db_pool.get().expect("db_pool error"); - let ret = match conn.transaction(|| self.$post_handler(entity, false, &conn)) { + let ret = match conn.transaction(|| self.$post_handler(entity, &conn)) { Ok(edit) => $post_resp::CreatedEntity(edit), Err(Error(ErrorKind::Diesel(e), _)) => |