mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-10-30 08:40:52 +08:00
Add seedGit to getRegistration destructuring
We were destructuring an array of promises into individual values, but we forgot to add `seedGit` as a new value, this gave issues for the creation of a new EnsProfile. Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
This commit is contained in:
+13
-2
@@ -90,8 +90,18 @@ export async function getRegistration(
|
||||
getText(resolver, "com.github"),
|
||||
]);
|
||||
|
||||
const [address, avatar, url, id, seedId, seedHost, seedApi, twitter, github] =
|
||||
meta.filter(isFulfilled).map(r => (r.value ? r.value : undefined));
|
||||
const [
|
||||
address,
|
||||
avatar,
|
||||
url,
|
||||
id,
|
||||
seedId,
|
||||
seedHost,
|
||||
seedGit,
|
||||
seedApi,
|
||||
twitter,
|
||||
github,
|
||||
] = meta.filter(isFulfilled).map(r => (r.value ? r.value : undefined));
|
||||
|
||||
const profile: EnsProfile = {
|
||||
name,
|
||||
@@ -109,6 +119,7 @@ export async function getRegistration(
|
||||
profile.seed = new Seed({
|
||||
host: seedHost,
|
||||
id: seedId,
|
||||
git: seedGit,
|
||||
addr: seedApi,
|
||||
});
|
||||
} catch (e: any) {
|
||||
|
||||
Reference in New Issue
Block a user