mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-16 21:56:21 +00:00
fix: permitir modificar el token
estos parches hacian que no se pueda modificar el token
This commit is contained in:
parent
932355fa2e
commit
8006bd0353
1 changed files with 0 additions and 16 deletions
|
@ -22,22 +22,6 @@ class DistributedPressPublisher < ApplicationRecord
|
|||
where('expires_at > ? and expires_at < ?', Time.now, Time.now + 1.hour)
|
||||
}
|
||||
|
||||
# Al cambiar el token genera un cliente nuevo
|
||||
#
|
||||
# @return [String]
|
||||
def token=(new_token)
|
||||
@client = nil
|
||||
super
|
||||
end
|
||||
|
||||
# Al cambiar la instancia genera un cliente nuevo
|
||||
#
|
||||
# @return [String]
|
||||
def instance=(new_instance)
|
||||
@client = nil
|
||||
super
|
||||
end
|
||||
|
||||
# Instancia un cliente de Distributed Press a partir del token. Al
|
||||
# cargar un token a punto de vencer se renueva automáticamente.
|
||||
#
|
||||
|
|
Loading…
Reference in a new issue