Skip to content

Commit

Permalink
Allow detection and candidate update actions to accept more attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
skanderm committed Jul 25, 2024
1 parent 003c017 commit 357df39
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion server/lib/orcasite/radio/candidate.ex
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ defmodule Orcasite.Radio.Candidate do

update :update do
primary? true
accept [:min_time, :max_time, :detection_count, :visible]
accept [:min_time, :max_time, :detection_count, :visible, :category]
end

update :cancel_notifications do
Expand Down
1 change: 1 addition & 0 deletions server/lib/orcasite/radio/detection.ex
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ defmodule Orcasite.Radio.Detection do
primary? true
argument :candidate, :map
require_atomic? false
accept [:description, :visible, :category]

change manage_relationship(:candidate, type: :append)
end
Expand Down

0 comments on commit 357df39

Please sign in to comment.