Skip to content

Commit

Permalink
Add ratings as optional
Browse files Browse the repository at this point in the history
  • Loading branch information
gemcoder21 committed Sep 11, 2024
1 parent 53574b7 commit f4348e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/operator/src/googleplay_updater.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ impl GooglePlayUpdater {
country: language.country.to_string(),
title: response.title.clone(),
version: response.version.clone(),
ratings: Some(response.ratings),
ratings: Some(response.ratings.unwrap_or_default()),
average_rating: Some(response.score.unwrap_or_default()),
release_date: response.release_date().naive_utc(),
current_version_release_date: response.updated_date().naive_utc(),
Expand Down
2 changes: 1 addition & 1 deletion crates/api_connector/src/google_play_client/models.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ pub struct AppInformation {
pub description: String,
pub summary: String,
pub score: Option<f64>,
pub ratings: f64,
pub ratings: Option<f64>,
pub updated: i64,
pub app_id: String,
pub version: String,
Expand Down

0 comments on commit f4348e6

Please sign in to comment.