Skip to content

Commit

Permalink
Cache.all(nil, return: :value) did not correctly handle values that a…
Browse files Browse the repository at this point in the history
…re lists.
  • Loading branch information
jweinkam committed Aug 4, 2024
1 parent 2b15912 commit 19194c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/nebulex/adapters/partitioned.ex
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,7 @@ defmodule Nebulex.Adapters.Partitioned do
defspan execute(adapter_meta, operation, query, opts) do
reducer =
case operation do
:all -> &List.flatten/1
:all -> &Enum.flat_map(&1, fn item -> item end)
_ -> &Enum.sum/1
end

Expand Down

0 comments on commit 19194c2

Please sign in to comment.