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:
parent
e814ce7e1f
commit
09f74a060d
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user