mirror of
https://github.com/philomena-dev/philomena.git
synced 2025-01-19 22:27:59 +01:00
Fixup
This commit is contained in:
parent
392d920657
commit
0a4bcf60eb
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue