BUGFIX: seen recently key needs to be public so mock can easily reach in to it
This commit is contained in:
parent
aa3096141a
commit
983c7567aa
|
@ -64,9 +64,7 @@ class GroupMessage
|
|||
$redis.setex(sent_recently_key, @opts[:limit_once_per].try(:to_i) || 86_400, 1) unless @opts[:limit_once_per] == false
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def sent_recently_key
|
||||
"grpmsg:#{@group_name}:#{@message_type}:#{@opts[:user] ? @opts[:user].username : ''}"
|
||||
end
|
||||
def sent_recently_key
|
||||
"grpmsg:#{@group_name}:#{@message_type}:#{@opts[:user] ? @opts[:user].username : ''}"
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue