5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-16 16:51:41 +00:00

feat: guardar la api key de njalla en las credenciales

This commit is contained in:
f 2023-03-23 17:11:51 -03:00
parent ecd8c80e02
commit 3abd87e8e6

View file

@ -160,7 +160,7 @@ class DeployDistributedPress < Deploy
def njalla
@njalla ||=
begin
client = Njalla::V1::Client.new(token: ENV['NJALLA_TOKEN'])
client = Njalla::V1::Client.new(token: Rails.application.credentials.njalla)
Njalla::V1::Domain.new(domain: Site.domain, client: client)
end