5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-06-02 04:24:17 +00:00

fix: permitir modificar el token

estos parches hacian que no se pueda modificar el token
This commit is contained in:
f 2023-01-20 20:35:39 -03:00
parent 932355fa2e
commit 8006bd0353

View file

@ -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.
#