fix find_partial

This commit is contained in:
JMARyA 2024-07-24 16:13:21 +02:00
parent 0acc799174
commit 280f3cf3a0
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263

View file

@ -204,7 +204,7 @@ pub trait Model:
filter: mongodb::bson::Document,
mut part: serde_json::Value,
limit: Option<i64>,
) -> impl std::future::Future<Output = Option<Vec<Self>>> {
) -> impl std::future::Future<Output = Option<Vec<Self::Partial>>> {
async move {
let db = get_mongo!();
let collection = col!(db, Self::collection_name());