Skip to content

Commit

Permalink
Fix passing args to write_multi
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitryTsepelev committed Jan 5, 2023
1 parent e322d5e commit 747e538
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## master

- [PR#96](https://github.com/DmitryTsepelev/graphql-ruby-fragment_cache/pull/96) Properly pass arguments to `write_multi` ([@DmitryTsepelev][])

## 1.18.0 (2022-12-28)

- [PR#94](https://github.com/DmitryTsepelev/graphql-ruby-fragment_cache/pull/94) Ruby 3 support ([@DmitryTsepelev][])
Expand Down
2 changes: 1 addition & 1 deletion lib/graphql/fragment_cache/cacher.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def batched_persist(query)
hash = group.map { |fragment| [fragment.cache_key, fragment.value] }.to_h

begin
FragmentCache.cache_store.write_multi(*hash, options)
FragmentCache.cache_store.write_multi(hash, options)
rescue => e
raise WriteMultiError.new(e, hash)
end
Expand Down

0 comments on commit 747e538

Please sign in to comment.