improve Ammo.get_packs_count

This commit is contained in:
2023-06-04 20:53:57 -04:00
parent cfc56519f5
commit a94d2eebf4
15 changed files with 82 additions and 124 deletions
CHANGELOG.md
lib
cannery
cannery_web
components
controllers
live
container_live
pack_live
type_live
priv/gettext
de
LC_MESSAGES
en
LC_MESSAGES
errors.pot
es
LC_MESSAGES
fr
LC_MESSAGES
ga
LC_MESSAGES
test
cannery
cannery_web

@ -52,7 +52,7 @@ defmodule CanneryWeb.ExportController do
containers =
Containers.list_containers(current_user)
|> Enum.map(fn container ->
pack_count = container |> Ammo.get_packs_count_for_container!(current_user)
pack_count = Ammo.get_packs_count(current_user, container_id: container.id)
round_count = container |> Ammo.get_round_count_for_container!(current_user)
container