1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-02-19 13:54:25 +01:00

fix version check

This commit is contained in:
Sylvain 2020-04-14 15:13:40 +02:00
parent e814ce7e1f
commit 09f74a060d

View File

@ -3,8 +3,8 @@
# Fab-manager central hub (remote host)
class FabHub
def self.version_check_payload
uuid = Setting.find_by(name: 'uuid').value
origin = Setting.find_by(name: 'origin').value || "#{Rails.application.secrets.default_protocol}://#{Rails.application.secrets.default_host}"
uuid = Setting.find_by(name: 'uuid')&.value
origin = Setting.find_by(name: 'origin')&.value || "#{Rails.application.secrets.default_protocol}://#{Rails.application.secrets.default_host}"
{
uuid: uuid,
origin: origin,