Skip to content

Commit 57b314e

Browse files
committed
add comment for single? handling
1 parent 0b21d4a commit 57b314e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/data_layer.ex

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2041,6 +2041,8 @@ defmodule AshPostgres.DataLayer do
20412041
Map.put(acc, Map.take(r, keys), r)
20422042
end)
20432043

2044+
# if it's single the return_skipped_upsert? is handled at the
2045+
# call site https://github.com/ash-project/ash_postgres/blob/0b21d4a99cc3f6d8676947e291ac9b9d57ad6e2e/lib/data_layer.ex#L3046-L3046
20442046
if options[:return_skipped_upsert?] && !opts[:single] do
20452047
[changeset | _] = changesets
20462048

0 commit comments

Comments
 (0)