Skip to content

Commit 21c4e60

Browse files
authoredAug 5, 2024··
[#228] Cache.all(nil, return: :value) did not correctly handle values that are lists (#229)
1 parent 2b15912 commit 21c4e60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎lib/nebulex/adapters/partitioned.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,7 @@ defmodule Nebulex.Adapters.Partitioned do
581581
defspan execute(adapter_meta, operation, query, opts) do
582582
reducer =
583583
case operation do
584-
:all -> &List.flatten/1
584+
:all -> &Enum.flat_map(&1, fn item -> item end)
585585
_ -> &Enum.sum/1
586586
end
587587

0 commit comments

Comments
 (0)
Please sign in to comment.