This commit is contained in:
Liam 2024-07-23 20:29:41 -04:00
parent 392d920657
commit 0a4bcf60eb

View file

@ -77,7 +77,7 @@ defmodule Philomena.TagChanges.Limits do
defp check_limit(user, key, limit, additional) do
if considered_for_limit?(user) do
amt = Redix.command!(:redix, ["GET", key]) || 0
amt = String.to_integer(Redix.command!(:redix, ["GET", key]) || "0")
amt + additional >= limit
else
false