From 4c1291668fb6984daf85366c1ea6132d6b5e0638 Mon Sep 17 00:00:00 2001 From: niko Date: Sun, 14 Jan 2024 00:46:51 -0700 Subject: [PATCH] fix: add icon field --- src/mods.rs | 1 + src/search.rs | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/mods.rs b/src/mods.rs index 480d425..026257e 100644 --- a/src/mods.rs +++ b/src/mods.rs @@ -1181,6 +1181,7 @@ pub async fn _upload_mod(auth: &str, body: Vec) -> Response { name: db_mod.name, description: db_mod.description.unwrap_or("".to_string()), category: db_cata.name, + icon: db_mod.icon, author: MeiliUser { username: auser.username.clone(), display_name: auser.display_name.unwrap_or(auser.username), diff --git a/src/search.rs b/src/search.rs index 9bb8468..3f2db25 100644 --- a/src/search.rs +++ b/src/search.rs @@ -24,6 +24,7 @@ pub struct MeiliMod { pub versions: Vec, pub category: String, pub author: MeiliUser, + pub icon: Option, pub stats: MeiliModStats, pub supported_versions: Vec, pub created_at: i64, @@ -190,6 +191,7 @@ impl MeiliMigration for CreateIndexMigration { name: m.name, description: m.description.unwrap_or("".to_string()), category: category.name, + icon: m.icon, versions: vers, author: MeiliUser { username: author.username.clone(),