Merge pull request #458 from guarzo/guarzo/test_merge
Some checks failed
Build Test / 🚀 Deploy to test env (fly.io) (push) Has been cancelled
Build Test / 🛠 Build (1.17, 18.x, 27) (push) Has been cancelled

refactor: add test coverage for api and operations
This commit is contained in:
Dmitry Popov
2025-07-13 02:53:34 +04:00
committed by GitHub
60 changed files with 5652 additions and 5688 deletions

View File

@@ -552,7 +552,11 @@ defmodule WandererAppWeb.MapAPIController do
with {:ok, map_id} <- APIUtils.fetch_map_id(normalized_params),
{:ok, days} <- parse_days(params["days"]) do
raw_activity = WandererApp.Map.get_character_activity(map_id, days)
raw_activity =
case WandererApp.Map.get_character_activity(map_id, days) do
{:ok, activity} -> activity
{:error, _} -> []
end
summarized_result =
if raw_activity == [] do