mirror of
https://github.com/modrinth/code.git
synced 2026-07-31 13:16:38 +00:00
fix(labrinth): serde(default) new search document fields (#6656)
This commit is contained in:
@@ -15,6 +15,7 @@ pub struct LegacySearchResults {
|
||||
pub struct LegacyResultSearchProject {
|
||||
pub project_id: String,
|
||||
pub project_type: String,
|
||||
#[serde(default)]
|
||||
pub all_project_types: Vec<String>,
|
||||
pub slug: Option<String>,
|
||||
pub author: String,
|
||||
|
||||
@@ -239,6 +239,7 @@ pub struct UploadSearchProject {
|
||||
pub project_id: String,
|
||||
//
|
||||
pub project_types: Vec<String>,
|
||||
#[serde(default)]
|
||||
pub all_project_types: Vec<String>,
|
||||
pub slug: Option<String>,
|
||||
pub author: String,
|
||||
|
||||
Reference in New Issue
Block a user