Skip to content

Commit

Permalink
Merge pull request #163 from waldyr/main
Browse files Browse the repository at this point in the history
Update code example in README.md
  • Loading branch information
swalkinshaw authored Oct 10, 2023
2 parents 3b22366 + b342ea8 commit 8f5b102
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,7 @@ def all_collections
Promise.all([
CountLoader.for(Shop, :smart_collections).load(context.shop_id),
CountLoader.for(Shop, :custom_collections).load(context.shop_id),
]).then do |results|
results.reduce(&:+)
end
]).then(&:sum)
end
```

Expand Down

0 comments on commit 8f5b102

Please sign in to comment.