fix: ensure that returning is not an empty list

This commit is contained in:
Zach Daniel 2024-09-15 20:56:51 -04:00
parent 3c0872ab94
commit 3afbae2c80

View file

@ -1736,6 +1736,7 @@ defmodule AshPostgres.DataLayer do
returning =
case options[:action_select] do
nil -> true
[] -> Ash.Resource.Info.primary_key(resource)
fields -> fields
end