From 280f3cf3a0e63b8587e95adc78dfaf756d58550e Mon Sep 17 00:00:00 2001 From: JMARyA Date: Wed, 24 Jul 2024 16:13:21 +0200 Subject: [PATCH] fix find_partial --- src/model/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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());