add and delete tags to/from containers

This commit is contained in:
2022-02-13 21:14:48 -05:00
parent 0d52a943d7
commit df40f03589
12 changed files with 267 additions and 29 deletions

View File

@@ -184,8 +184,7 @@ defmodule Cannery.Containers do
Repo.delete_all(
from ct in ContainerTag,
where: ct.container_id == ^container_id,
where: ct.tag_id == ^tag_id,
where: ct.user_id == ^user_id
where: ct.tag_id == ^tag_id
)
if count == 0, do: raise("could not delete container tag"), else: count