Service for editing/creating recipe
[recipes.git] / backend / src / data / asynchronous.rs
index 7ef77b8..5d27388 100644 (file)
@@ -7,7 +7,6 @@ use chrono::{prelude::*, Duration};
 
 use super::db::*;
 use crate::model;
-use crate::user::User;
 
 #[derive(Debug)]
 pub enum DBAsyncError {
@@ -65,7 +64,7 @@ impl Connection {
         )
     }
 
-    pub async fn load_user_async(&self, user_id: i64) -> Result<User> {
+    pub async fn load_user_async(&self, user_id: i64) -> Result<model::User> {
         let self_copy = self.clone();
         combine_errors(
             web::block(move || self_copy.load_user(user_id).map_err(DBAsyncError::from)).await,