Skip to content

Commit

Permalink
update index
Browse files Browse the repository at this point in the history
  • Loading branch information
twilson63 committed Dec 20, 2023
1 parent 4a8a0b7 commit 88e3994
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions src/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,18 @@ export default {
.chain(({ id }) => Async.fromPromise(services.register)(id))
,
list: () => {
return all([
fromPromise(services.gql)(buildSpecListQuery())
.map(path(["data", "transactions", "edges"]))
.map(map(compose(toItem, prop("node")))),
fromPromise(services.bundlr)(buildBundlrSpecListQuery())
.map(path(["data", "transactions", "edges"]))
.map(map(compose(toBundlrItem, prop("node")))),
])
.map(([a, b]) => uniqBy(prop("id"), a.concat(b)))
// return all([
// fromPromise(services.gql)(buildSpecListQuery())
// .map(path(["data", "transactions", "edges"]))
// .map(map(compose(toItem, prop("node")))),
// // fromPromise(services.bundlr)(buildBundlrSpecListQuery())
// // .map(path(["data", "transactions", "edges"]))
// // .map(map(compose(toBundlrItem, prop("node")))),
// ])
// .map(([a, b]) => uniqBy(prop("id"), a.concat(b)))
return fromPromise(services.gql)(buildSpecListQuery())
.map(path(["data", "transactions", "edges"]))
.map(map(compose(toItem, prop("node"))))
.chain((specs) =>
fromPromise(services.stampCounts)(map(prop("id"), specs)).map(
(results) =>
Expand Down

0 comments on commit 88e3994

Please sign in to comment.