From 357df39443b6d7df7c24d4bf907a5b11d0cd2e4d Mon Sep 17 00:00:00 2001 From: Skander Mzali Date: Wed, 24 Jul 2024 18:20:49 -0700 Subject: [PATCH] Allow detection and candidate update actions to accept more attributes --- server/lib/orcasite/radio/candidate.ex | 2 +- server/lib/orcasite/radio/detection.ex | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/server/lib/orcasite/radio/candidate.ex b/server/lib/orcasite/radio/candidate.ex index 7c6db30e..6bbe36c4 100644 --- a/server/lib/orcasite/radio/candidate.ex +++ b/server/lib/orcasite/radio/candidate.ex @@ -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 diff --git a/server/lib/orcasite/radio/detection.ex b/server/lib/orcasite/radio/detection.ex index c2b27281..18206bef 100644 --- a/server/lib/orcasite/radio/detection.ex +++ b/server/lib/orcasite/radio/detection.ex @@ -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