Fix read/unread multiple endpoints not returning ids as strings

This commit is contained in:
Shadowfacts 2023-01-31 15:07:02 -05:00
parent 42ab728f7e
commit 4e484cac92
1 changed files with 1 additions and 1 deletions

View File

@ -101,7 +101,7 @@ defmodule FrenzyWeb.Fervor.ItemsController do
changeset = Item.changeset(item, changes) changeset = Item.changeset(item, changes)
case Repo.update(changeset) do case Repo.update(changeset) do
{:ok, item} -> item.id {:ok, item} -> to_string(item.id)
_ -> nil _ -> nil
end end
end) end)