From 20eaec55f978746e1ddf0e4139989aedd50042fc 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 56af0be1c..bcc7aa93b 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 @derive {Jason.Encoder, only: [ @@ -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 """