Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Public Libs
Elixir
Notification Dispatcher
Commits
61626598
Commit
61626598
authored
Oct 27, 2020
by
Miguel Basticioto
Browse files
fix: ajuste no json
parent
82a7066d
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/controllers/notification_message_controller.ex
View file @
61626598
...
...
@@ -7,7 +7,7 @@ defmodule NotificationDispatcher.Controller.NotificationMessageController do
def
create
(
params
)
do
case
NotificationsContext
.
create_notification_message
(
params
)
do
{
:ok
,
notification_message
}
->
{
:ok
,
notification_message
,
"{
\"
data
\"
: {
\"
id
\"
:
\"
#{
notification_message
.
id
}
\"
}}"
}
{
:ok
,
notification_message
,
%{
data:
%{
id:
notification_message
.
id
}
}
}
{
:error
,
changeset
}
->
{
:error
,
changeset
}
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment