mirror of
https://github.com/flibusta-apps/book_library_server.git
synced 2025-12-06 15:15:36 +01:00
This commit is contained in:
@@ -6,7 +6,7 @@ use crate::meilisearch::GetId;
|
||||
|
||||
pub async fn get_random_item<'a, T>(index: Index, filter: String) -> i32
|
||||
where
|
||||
T: DeserializeOwned + GetId + 'static,
|
||||
T: DeserializeOwned + GetId + 'static + Send + Sync,
|
||||
{
|
||||
let result = index
|
||||
.search()
|
||||
|
||||
Reference in New Issue
Block a user