fix: don't pass an error tuple to rollback in bulk update (#1079)

This commit is contained in:
Riccardo Binetti 2024-04-30 12:40:42 +02:00 committed by GitHub
parent 45b76c209d
commit 09238490c4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1318,7 +1318,7 @@ defmodule Ash.Actions.Update.Bulk do
if new_error_count != starting_error_count do
Ash.DataLayer.rollback(
resource,
{:error, Enum.take(new_errors, new_error_count - starting_error_count)}
Enum.take(new_errors, new_error_count - starting_error_count)
)
else
result