Verified Commit d410e355 authored by Nicolas's avatar Nicolas

Code refactoring

parent 1ff16321
Pipeline #107338895 passed with stages
in 3 minutes and 45 seconds
defmodule PlasmaRepo.MatrixRooms.EventTypes do
defmodule PlasmaHS.EventTypes do
use Plasma.Utils.Constants
define m_room_create, "m.room.create"
......
......@@ -13,7 +13,7 @@ defmodule PlasmaRepo.Events.EventType do
timestamps(updated_at: false)
end
defp create_changeset(event_type, attrs) do
def create_changeset(event_type, attrs) do
event_type
|> cast(attrs, [:name])
|> validate_required([:name], message: "required")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment