Fix relay profile loading, add getTopicTags, allow mapping events to multiple items

This commit is contained in:
Jon Staab
2024-09-11 09:15:03 -07:00
parent bece689530
commit 4e113faa1a
7 changed files with 62 additions and 40 deletions
+1 -1
View File
@@ -479,7 +479,7 @@ export const batcher = <T, U>(t: number, execute: (request: T[]) => U[] | Promis
const results = await execute(items.map(item => item.request))
if (results.length !== items.length) {
throw new Error("Execute must return a promise for each request")
throw new Error("Execute must return a result for each request")
}
results.forEach(async (r, i) => items[i].resolve(await r))