moves db logic inside model's managers
This commit is contained in:
@@ -35,7 +35,6 @@ where
|
||||
J: serde::ser::Serialize + Send + 'static,
|
||||
Q: Fn(DbApi) -> QueryResult<J> + Send + 'static,
|
||||
{
|
||||
dbg!("db_call");
|
||||
let conn = pool.get().unwrap();
|
||||
web::block(move || {
|
||||
let api = DbApi::with_conn(&conn);
|
||||
|
||||
Reference in New Issue
Block a user