Skip to content

Commit 9139c61

Browse files
committed
fix: correct the method used to destructure thing.
1 parent a43fdeb commit 9139c61

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/models/organization.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ impl From<Organization> for UserOrganization {
8686
name: val.name,
8787
display_name: val.display_name,
8888
description: val.description,
89-
owners: val.owners.iter().map(|x| x.to_string()).collect(),
90-
members: val.members.iter().map(|x| x.to_string()).collect(),
89+
owners: val.owners.iter().map(|thing| thing.id.to_raw()).collect(),
90+
members: val.members.iter().map(|thing| thing.id.to_raw()).collect(),
9191
created_at: val.created_at,
9292
updated_at: val.updated_at,
9393
}

0 commit comments

Comments
 (0)