Skip to content

Commit

Permalink
fix(mantle,rbx_api): fix import bugs (#190)
Browse files Browse the repository at this point in the history
  • Loading branch information
blake-mealey authored Jun 3, 2023
1 parent 6b6f263 commit 1bf02bf
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion mantle/rbx_api/src/badges/models.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ pub struct ListBadgesResponse {
pub struct ListBadgeResponse {
pub id: AssetId,
pub name: String,
pub description: String,
pub description: Option<String>,
pub icon_image_id: AssetId,
pub enabled: bool,
}
6 changes: 4 additions & 2 deletions mantle/rbx_api/src/notifications/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,10 @@ impl RobloxApi {
.await?;
all_notifications.extend(res.notification_string_configs);

if res.next_page_cursor.is_none() {
break;
match res.next_page_cursor {
None => break,
Some(next_page_cursor) if next_page_cursor.is_empty() => break,
_ => {}
}

page_cursor = res.next_page_cursor;
Expand Down
2 changes: 1 addition & 1 deletion mantle/rbx_mantle/src/state/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -753,7 +753,7 @@ pub async fn import_graph(
&format!("badge_{}", badge.id),
RobloxInputs::Badge(BadgeInputs {
name: badge.name,
description: badge.description,
description: badge.description.unwrap_or_default(),
enabled: badge.enabled,
icon_file_path: "fake-path".to_owned(),
}),
Expand Down

1 comment on commit 1bf02bf

@vercel
Copy link

@vercel vercel bot commented on 1bf02bf Jun 3, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.