Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Shaobo He <shaobohe@amazon.com>
  • Loading branch information
shaobo-he-aws committed May 21, 2024
1 parent b82d3e6 commit 3bbacc5
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions tinytodo/src/objects.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,13 @@ impl From<Team> for Entity {
let euid: EntityUid = team.uid.into();
Entity::new(
euid.into(),
HashMap::from_iter([(
"admins".to_owned(),
RestrictedExpression::new_set(team.admins.into_iter().map(|u| u.into())),
)]),
HashMap::from_iter([
(
"admins".to_owned(),
RestrictedExpression::new_set(team.admins.into_iter().map(|u| u.into())),
),
("owner".to_owned(), team.owner.into()),
]),
team.parents.into_iter().map(|euid| euid.into()).collect(),
)
.unwrap()
Expand Down

0 comments on commit 3bbacc5

Please sign in to comment.