Fix license field not working:

This commit is contained in:
Jai A
2021-03-07 17:07:32 -07:00
parent 8becf45714
commit 2163d4465f
2 changed files with 4 additions and 4 deletions

View File

@@ -162,7 +162,7 @@ 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: license.short,
license: Some(license.short),
client_side: client_side.to_string(),
server_side: server_side.to_string(),
host: Cow::Borrowed("modrinth"),
@@ -311,7 +311,7 @@ pub async fn query_one(
date_modified: mod_data.updated,
modified_timestamp: mod_data.updated.timestamp(),
latest_version,
license: license.short,
license: Some(license.short),
client_side: client_side.to_string(),
server_side: server_side.to_string(),
host: Cow::Borrowed("modrinth"),