nexusmods: Fix File type
All checks were successful
lint/clippy Checking for common mistakes and opportunities for code improvement
build/msvc Build for the target platform: msvc
build/linux Build for the target platform: linux

This commit is contained in:
Lucas Schwiderski 2023-11-29 15:37:37 +01:00
parent 2ad3fd0fc1
commit a0fe5d3f81
Signed by: lucas
GPG key ID: AA12679AAA6DF4D8
2 changed files with 3 additions and 3 deletions

View file

@ -117,7 +117,7 @@ impl Api {
let Some(file) = files
.files
.into_iter()
.find(|file| file.updated_timestamp == timestamp)
.find(|file| file.uploaded_timestamp == timestamp)
else {
let err = Error::Custom("Timestamp does not match any file".into());
return Err(err);

View file

@ -77,13 +77,13 @@ pub struct File {
pub size: u64,
pub file_name: String,
#[serde(with = "time::serde::timestamp")]
pub updated_timestamp: OffsetDateTime,
pub uploaded_timestamp: OffsetDateTime,
pub mod_version: String,
pub external_virus_scan_url: String,
pub description: String,
pub size_kb: u64,
pub size_in_bytes: u64,
pub changelog_html: String,
pub changelog_html: Option<String>,
pub content_preview_link: String,
}