Add util to derive repository store, modify tracker to track relays by id

This commit is contained in:
Jon Staab
2024-10-10 13:10:50 -07:00
parent b8f4b29bb1
commit b5809b6f72
5 changed files with 50 additions and 23 deletions
+1 -1
View File
@@ -161,7 +161,7 @@ export const storageAdapters = {
let onUpdate = () =>
setter(
migrate(
Array.from(tracker.data.entries())
Array.from(tracker.relaysById.entries())
.map(([key, urls]) => ({key, value: Array.from(urls)})),
options
)