fix(purchases): deserialize purchased_at as i64 unix timestamp
The Qobuz API returns purchased_at as a Unix timestamp integer, not a string. Updated Rust structs, TypeScript types, and frontend date formatting to handle numeric timestamps correctly. Fixes #88 cc
This commit is contained in:
1 parent
183a0ec50d
commit
45ca758f47
5 files changed
+13
-13
No files matched your search
@@ -8101,7 +8101,7 @@ pub async fn v2_purchases_get_album(
|
||||
maximum_bit_depth: track.maximum_bit_depth,
|
||||
streamable: track.streamable,
|
||||
downloaded: false,
|
||||
purchased_at: purchase_meta.and_then(|item| item.purchased_at.clone()),
|
||||
purchased_at: purchase_meta.and_then(|item| item.purchased_at),
|
||||
})
|
||||
.collect()
|
||||
})
|
||||
@@ -8122,7 +8122,7 @@ pub async fn v2_purchases_get_album(
|
||||
maximum_bit_depth: album.maximum_bit_depth,
|
||||
downloadable: purchase_meta.map(|item| item.downloadable).unwrap_or(true),
|
||||
downloaded: false,
|
||||
purchased_at: purchase_meta.and_then(|item| item.purchased_at.clone()),
|
||||
purchased_at: purchase_meta.and_then(|item| item.purchased_at),
|
||||
tracks: Some(ApiSearchResultsPage {
|
||||
offset: 0,
|
||||
limit: tracks_items.len() as u32,
|
||||
|
||||
Reference in new issue
Block a user