Skip to content

Commit

Permalink
Fix creating a detection when logged in (#493)
Browse files Browse the repository at this point in the history
  • Loading branch information
skanderm committed Jun 7, 2024
1 parent d4cdd15 commit 0185eaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/lib/orcasite/radio/detection.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0185eaf

Please sign in to comment.