Skip to content

Commit a65c937

Browse files
More debug logs
1 parent c982cbb commit a65c937

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

notifications/lib/notifications/api/public_api.ex

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,11 @@ defmodule Notifications.Api.PublicApi do
1919
end
2020

2121
def create_notification(notification, call) do
22+
IO.puts("CREATE NOTIFICATIONS PUBLIC")
23+
IO.inspect(notification)
2224
{org_id, user_id} = extract_headers(call)
25+
IO.inspect(org_id)
26+
IO.inspect(user_id)
2327

2428
Notifications.Api.PublicApi.Create.run(notification, org_id, user_id)
2529
end

notifications/lib/notifications/api/public_api/create.ex

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,8 @@ defmodule Notifications.Api.PublicApi.Create do
77
alias Notifications.Util.Validator
88

99
def run(notification, org_id, user_id) do
10-
IO.puts("PUBLIC API CREATE")
11-
IO.inspect(user_id)
12-
IO.inspect(org_id)
10+
IO.puts("Create Run public")
1311
IO.inspect(notification)
14-
1512
name = notification.metadata.name
1613

1714
Logger.info("#{inspect(org_id)} #{inspect(user_id)} #{name}")

0 commit comments

Comments
 (0)