Commit 82a7066d authored by Miguel Basticioto's avatar Miguel Basticioto
Browse files

fix: assinatura do metodo errada

parent 25aeee1f
......@@ -2,9 +2,9 @@ defmodule NotificationDispatcher.Controller.NotificationMessageController do
alias NotificationDispatcher.Context.NotificationsContext
@doc """
Create can return {:ok, notification_message} or {:error, changeset}
Create can return {:ok, notification_message, json} or {:error, changeset}
"""
def create(conn, params) do
def create(params) do
case NotificationsContext.create_notification_message(params) do
{:ok, notification_message} ->
{:ok, notification_message, "{\"data\": {\"id\": \"#{notification_message.id}\"}}"}
......
Supports Markdown
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