From b57de2f49c8fe63f371f81104a626d5c7bdd28e3 Mon Sep 17 00:00:00 2001 From: Kayla Firestack Date: Fri, 20 Sep 2024 08:45:42 -0400 Subject: [PATCH] cleanup(ex/notifications/detour): remove changeset function --- lib/notifications/db/detour.ex | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/lib/notifications/db/detour.ex b/lib/notifications/db/detour.ex index 5905e1b83..bc02d4b8d 100644 --- a/lib/notifications/db/detour.ex +++ b/lib/notifications/db/detour.ex @@ -4,7 +4,6 @@ defmodule Notifications.Db.Detour do """ use Skate.Schema - import Ecto.Changeset import Ecto.Query @derive {Jason.Encoder, @@ -30,20 +29,7 @@ defmodule Notifications.Db.Detour do field :origin, :any, virtual: true end - def changeset( - %__MODULE__{} = struct, - attrs \\ %{} - ) do - struct - |> cast(attrs, [ - :detour, - :status - ]) - |> validate_required([ - :detour, - :status - ]) - end + # Notifications are not created from external input, so there is no changeset function defmodule Queries do @moduledoc """