Skip to content

Commit

Permalink
fix: add icon field
Browse files Browse the repository at this point in the history
  • Loading branch information
sargon64 committed Jan 14, 2024
1 parent f60ad74 commit 4c12916
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/mods.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1181,6 +1181,7 @@ pub async fn _upload_mod(auth: &str, body: Vec<u8>) -> 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),
Expand Down
2 changes: 2 additions & 0 deletions src/search.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ pub struct MeiliMod {
pub versions: Vec<MeiliVersion>,
pub category: String,
pub author: MeiliUser,
pub icon: Option<String>,
pub stats: MeiliModStats,
pub supported_versions: Vec<String>,
pub created_at: i64,
Expand Down Expand Up @@ -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(),
Expand Down

0 comments on commit 4c12916

Please sign in to comment.