mirror of
https://github.com/internetee/registry.git
synced 2025-05-19 02:39:37 +02:00
parent
d5b96060e0
commit
82c74a4811
1 changed files with 0 additions and 1 deletions
|
@ -114,7 +114,6 @@ class Epp::SessionsController < EppController
|
||||||
end
|
end
|
||||||
|
|
||||||
def connection_limit_ok?
|
def connection_limit_ok?
|
||||||
return true if Rails.env.test? || Rails.env.development?
|
|
||||||
c = EppSession.where(
|
c = EppSession.where(
|
||||||
'registrar_id = ? AND updated_at >= ?', @api_user.registrar_id, Time.zone.now - 1.second
|
'registrar_id = ? AND updated_at >= ?', @api_user.registrar_id, Time.zone.now - 1.second
|
||||||
).count
|
).count
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue