Skip to content

Commit

Permalink
fix: correct the method used to destructure thing.
Browse files Browse the repository at this point in the history
  • Loading branch information
K0nnyaku committed Jan 2, 2025
1 parent a43fdeb commit 9139c61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/models/organization.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ impl From<Organization> for UserOrganization {
name: val.name,
display_name: val.display_name,
description: val.description,
owners: val.owners.iter().map(|x| x.to_string()).collect(),
members: val.members.iter().map(|x| x.to_string()).collect(),
owners: val.owners.iter().map(|thing| thing.id.to_raw()).collect(),
members: val.members.iter().map(|thing| thing.id.to_raw()).collect(),
created_at: val.created_at,
updated_at: val.updated_at,
}
Expand Down

0 comments on commit 9139c61

Please sign in to comment.