mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-01-17 06:52:27 +01:00
fix an issue with the health endpoint
This commit is contained in:
parent
e1d346591f
commit
6b63483fcc
@ -20,7 +20,7 @@ class HealthController < ActionController::Base
|
||||
version: Version.up_to_date?
|
||||
},
|
||||
stats: HealthService.stats,
|
||||
tagline: 'Manage the DIY'
|
||||
tagline: 'The platform to manage your fablab or your coworking space.'
|
||||
}
|
||||
end
|
||||
end
|
||||
|
@ -60,7 +60,7 @@ class HealthService
|
||||
return false unless key
|
||||
|
||||
public_key = OpenSSL::PKey::RSA.new(key)
|
||||
Base64.encode64(public_key.public_encrypt(stats))
|
||||
Base64.encode64(public_key.public_encrypt(row_stats.to_json.to_s))
|
||||
end
|
||||
|
||||
# availabilities for the last week
|
||||
|
Loading…
x
Reference in New Issue
Block a user