mirror of
https://github.com/ash-project/ash_postgres.git
synced 2024-09-19 13:03:14 +12:00
fix: ensure that returning is not an empty list
This commit is contained in:
parent
3c0872ab94
commit
3afbae2c80
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue