Skip to content

Commit

Permalink
Reformat
Browse files Browse the repository at this point in the history
Signed-off-by: tiksan <[email protected]>
  • Loading branch information
dssecret committed Jan 29, 2025
1 parent a1d8ec9 commit b4ad846
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions worker/lib/notification/audit.ex
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ defmodule Tornium.Notification.Audit do
)
end

def log(:discord_error = action, %Tornium.Schema.Notification{} = notification, channel_id, opts) when channel_id == false do
def log(:discord_error = action, %Tornium.Schema.Notification{} = notification, channel_id, opts)
when channel_id == false do
%Nostrum.Error.ApiError{response: %{code: error_code}} = opts.error

"A Discord error (#{error_code}) occurred while making an API call"
Expand All @@ -103,7 +104,8 @@ defmodule Tornium.Notification.Audit do
nil
end

def log(:discord_error = action, %Tornium.Schema.Notification{nid: nid} = _notification, channel_id, opts) when is_integer(channel_id) do
def log(:discord_error = action, %Tornium.Schema.Notification{nid: nid} = _notification, channel_id, opts)
when is_integer(channel_id) do
%Nostrum.Error.ApiError{response: %{code: error_code}} = opts.error

create_audit_message(
Expand Down

0 comments on commit b4ad846

Please sign in to comment.