diff --git a/lib/cannery/ammo.ex b/lib/cannery/ammo.ex index 0ef918e6..01b4e130 100644 --- a/lib/cannery/ammo.ex +++ b/lib/cannery/ammo.ex @@ -256,6 +256,12 @@ defmodule Cannery.Ammo do |> Repo.insert() end + def create_ammo_group(invalid_attrs, _user) do + %AmmoGroup{} + |> AmmoGroup.create_changeset(invalid_attrs |> Map.put("user_id", "-1")) + |> Repo.insert() + end + @doc """ Updates a ammo_group.