Fetch file version from Nexus #147

Merged
lucas merged 5 commits from feat/nexus-file-version into master 2023-11-29 18:53:14 +01:00
2 changed files with 3 additions and 3 deletions
Showing only changes of commit a0fe5d3f81 - Show all commits

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,
}