From 0185eaf8c6393e4edaea477e8e812a3e62c40471 Mon Sep 17 00:00:00 2001 From: skanderm Date: Fri, 7 Jun 2024 12:31:17 -0700 Subject: [PATCH] Fix creating a detection when logged in (#493) --- server/lib/orcasite/radio/detection.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/lib/orcasite/radio/detection.ex b/server/lib/orcasite/radio/detection.ex index 5d8c01be..f03be5ac 100644 --- a/server/lib/orcasite/radio/detection.ex +++ b/server/lib/orcasite/radio/detection.ex @@ -203,7 +203,7 @@ defmodule Orcasite.Radio.Detection do change fn changeset, %{actor: %Orcasite.Accounts.User{} = actor} -> changeset - |> Ash.Changeset.manage_relationship(:created_by_user, actor, type: :append) + |> Ash.Changeset.manage_relationship(:user, actor, type: :append) changeset, _ -> changeset