fix: linting + tests

This commit is contained in:
Simon 2026-01-19 14:09:19 +01:00
parent a161393ea1
commit d8ab9a1015
Signed by: simon
GPG key ID: 40E7A58C4AA1EDB2
3 changed files with 11 additions and 4 deletions

View file

@ -166,7 +166,7 @@ case Accounts.User
# User already exists (e.g., via OIDC) - assign admin role
existing_admin_user
|> Ash.Changeset.for_update(:update, %{})
|> Ash.Changeset.manage_relationship(:role, admin_role, type: :replace)
|> Ash.Changeset.manage_relationship(:role, admin_role, type: :append_and_remove)
|> Ash.update!()
{:ok, nil} ->
@ -177,7 +177,7 @@ case Accounts.User
|> then(fn user ->
user
|> Ash.Changeset.for_update(:update, %{})
|> Ash.Changeset.manage_relationship(:role, admin_role, type: :replace)
|> Ash.Changeset.manage_relationship(:role, admin_role, type: :append_and_remove)
|> Ash.update!()
end)