adjust for multitenant

This commit is contained in:
Alex Turchyn committed 2023-06-30 22:41:53 +03:00
1 parent c904d51302
commit f5caed502f
24 files changed
+139 -52

No files matched your search

+1 -1
View File
@@ -22,7 +22,7 @@ class SetupController < ApplicationController
if @user.save
encrypted_configs = [
{ key: EncryptedConfig::APP_URL_KEY, value: encrypted_config_params[:value] },
{ key: EncryptedConfig::ESIGN_CERTS_KEY, value: GenerateCertificate.call }
{ key: EncryptedConfig::ESIGN_CERTS_KEY, value: GenerateCertificate.call.transform_values(&:to_pem) }
]
@account.encrypted_configs.create!(encrypted_configs)