Fix group loading

This commit is contained in:
Jon Staab 2024-06-18 11:03:02 -07:00
parent a23f71d307
commit 058a99b372
2 changed files with 4 additions and 9 deletions

View File

@ -160,7 +160,7 @@ projections.addHandler(34550, (e: TrustedEvent) => {
meta: {
name: meta.name,
about: meta.description,
banner: meta.image,
banner: meta.banner,
picture: meta.image,
},
})

View File

@ -140,18 +140,13 @@ export const getStaleAddrs = (addrs: string[]) => {
for (const addr of addrs) {
const attempts = attemptedAddrs.get(addr) | 0
const group = groups.key(addr).get()
if (attempts > 1) {
continue
if (!group?.meta || attempts === 0) {
stale.add(addr)
}
attemptedAddrs.set(addr, attempts + 1)
const group = groups.key(addr).get()
if (!group?.meta) {
stale.add(addr)
}
}
return Array.from(stale)