diff --git a/src/model/mod.rs b/src/model/mod.rs index a7244f9..520a517 100644 --- a/src/model/mod.rs +++ b/src/model/mod.rs @@ -204,7 +204,7 @@ pub trait Model: filter: mongodb::bson::Document, mut part: serde_json::Value, limit: Option, - ) -> impl std::future::Future>> { + ) -> impl std::future::Future>> { async move { let db = get_mongo!(); let collection = col!(db, Self::collection_name());