Skip to content

Commit

Permalink
returning :ok instead of nil if an id is not found so that the que ca…
Browse files Browse the repository at this point in the history
…n be cleared
  • Loading branch information
Matthew committed Aug 12, 2024
1 parent b47d8c0 commit 67da7ca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions lib/turn_junebug_expressway_web/utils.ex
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,8 @@ defmodule TurnJunebugExpresswayWeb.Utils do
}
]
})
else
:ok
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion test/turn_junebug_expressway_web/utils_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ defmodule TurnJunebugExpresswayWeb.UtilsTest do

# Utils.handle_incoming_event(Jason.encode!(event))

assert Utils.handle_incoming_event(Jason.encode!(event)) == nil
assert Utils.handle_incoming_event(Jason.encode!(event)) == :ok
end

test "sends event back to turn", %{} do
Expand Down

0 comments on commit 67da7ca

Please sign in to comment.