Skip to content

Commit eaff45b

Browse files
committed
Update data
1 parent c3a2109 commit eaff45b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/app/src/discovery/engine.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ pub struct MeiliProfileDocument {
2020
header: Option<String>,
2121
display: String,
2222
bio: Option<String>,
23-
addresses: HashMap<String, String>,
24-
records: HashMap<String, String>,
23+
addresses: Option<HashMap<String, String>>,
24+
records: Option<HashMap<String, String>>,
2525
fresh: i64,
2626
}
2727

@@ -34,8 +34,8 @@ impl From<&Profile> for MeiliProfileDocument {
3434
header: profile.header.clone(),
3535
display: profile.display.clone(),
3636
bio: profile.records.get("bio").cloned(),
37-
addresses: profile.chains.iter().map(|(chain, address)| (chain.to_string(), address.to_string())).collect(),
38-
records: profile.records.clone().into_iter().collect(),
37+
addresses: Some(profile.chains.iter().map(|(chain, address)| (chain.to_string(), address.to_string())).collect()),
38+
records: Some(profile.records.clone().into_iter().collect()),
3939
fresh: profile.fresh,
4040
}
4141
}

0 commit comments

Comments
 (0)