Fix search

This commit is contained in:
Jai A
2021-03-07 18:44:24 -07:00
parent 5b0cc73792
commit e596a8f731
5 changed files with 157 additions and 18 deletions

View File

@@ -162,9 +162,9 @@ pub async fn index_local(pool: PgPool) -> Result<Vec<UploadSearchMod>, IndexingE
date_modified: mod_data.updated,
modified_timestamp: mod_data.updated.timestamp(),
latest_version,
license: Some(license.short),
client_side: Some(client_side.to_string()),
server_side: Some(server_side.to_string()),
license: license.short,
client_side: client_side.to_string(),
server_side: server_side.to_string(),
host: Cow::Borrowed("modrinth"),
slug: mod_data.slug,
});
@@ -311,9 +311,9 @@ pub async fn query_one(
date_modified: mod_data.updated,
modified_timestamp: mod_data.updated.timestamp(),
latest_version,
license: Some(license.short),
client_side: Some(client_side.to_string()),
server_side: Some(server_side.to_string()),
license: license.short,
client_side: client_side.to_string(),
server_side: server_side.to_string(),
host: Cow::Borrowed("modrinth"),
slug: mod_data.slug,
})