mirror of
https://github.com/philomena-dev/philomena.git
synced 2025-02-01 03:46:44 +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
|
defp check_limit(user, key, limit, additional) do
|
||||||
if considered_for_limit?(user) 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
|
amt + additional >= limit
|
||||||
else
|
else
|
||||||
false
|
false
|
||||||
|
|
Loading…
Reference in a new issue