Skip to content

Commit 07b8d81

Browse files
fix: update context tenant from changeset for each change (#1837)
1 parent 15c0d48 commit 07b8d81

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/ash/changeset/changeset.ex

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2606,6 +2606,8 @@ defmodule Ash.Changeset do
26062606
changes
26072607
|> Enum.reduce(changeset, fn {location, change_or_validation}, changeset ->
26082608
try do
2609+
context = %{ context | tenant: changeset.tenant }
2610+
26092611
run_change_or_validation(
26102612
change_or_validation,
26112613
changeset,

0 commit comments

Comments
 (0)