Skip to content

Commit

Permalink
cleanup(ex/notifications/detour): remove changeset function
Browse files Browse the repository at this point in the history
  • Loading branch information
firestack committed Sep 27, 2024
1 parent 6320448 commit 20eaec5
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions lib/notifications/db/detour.ex
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ defmodule Notifications.Db.Detour do
"""

use Skate.Schema
import Ecto.Changeset

@derive {Jason.Encoder,
only: [
Expand All @@ -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 """
Expand Down

0 comments on commit 20eaec5

Please sign in to comment.