Update deps
Some checks failed
Build docker image / Build-Docker-Image (push) Has been cancelled

This commit is contained in:
2024-10-02 14:51:43 +02:00
parent a1b1d412ed
commit 3ee5e51767
4 changed files with 273 additions and 295 deletions

542
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@@ -11,25 +11,25 @@ members = [
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
once_cell = "1.19.0"
once_cell = "1.20.1"
prisma-client-rust = { git = "https://github.com/Brendonovich/prisma-client-rust", tag = "0.6.11", default-features = false, features = ["postgresql"] }
tokio = { version = "1.37.0", features = ["full"] }
tokio = { version = "1.40.0", features = ["full"] }
tracing = "0.1.40"
tracing-subscriber = { version = "0.3.18", features = ["env-filter"]}
sentry-tracing = "0.32.3"
tower-http = { version = "0.5.2", features = ["trace"] }
sentry-tracing = "0.34.0"
tower-http = { version = "0.6.1", features = ["trace"] }
axum = { version = "0.7.5", features = ["json"] }
axum-extra = { version ="0.9.3", features = ["query"] }
axum-prometheus = "0.6.1"
serde = { version = "1.0.198", features = ["derive"] }
axum = { version = "0.7.7", features = ["json"] }
axum-extra = { version ="0.9.4", features = ["query"] }
axum-prometheus = "0.7.0"
serde = { version = "1.0.210", features = ["derive"] }
sentry = { version = "0.32.3", features = ["debug-images"] }
sentry = { version = "0.34.0", features = ["debug-images"] }
meilisearch-sdk = "0.25.0"
meilisearch-sdk = "0.27.1"
rand = "0.8.5"

View File

@@ -1,10 +1,10 @@
use meilisearch_sdk::Client;
use meilisearch_sdk::client::Client;
use serde::Deserialize;
use crate::config::CONFIG;
pub fn get_meili_client() -> Client {
Client::new(&CONFIG.meili_host, Some(CONFIG.meili_master_key.clone()))
Client::new(&CONFIG.meili_host, Some(CONFIG.meili_master_key.clone())).unwrap()
}
pub trait GetId {

View File

@@ -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()