1
0
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:
Sylvain 2020-02-26 12:00:51 +01:00
parent e1d346591f
commit 6b63483fcc
2 changed files with 2 additions and 2 deletions

View File

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

View File

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