Fix API upload

This commit is contained in:
Liam 2024-06-23 12:36:19 -04:00
parent 0f3c6674b3
commit 677ecc265c

View file

@ -41,6 +41,8 @@ defmodule PhilomenaWeb.Api.Json.ImageController do
case Images.create_image(attributes, image_params) do
{:ok, %{image: image}} ->
image = Repo.preload(image, tags: :aliases)
PhilomenaWeb.Endpoint.broadcast!(
"firehose",
"image:create",