mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-03 20:48:07 +00:00
fix: make GlobalConfig migrated from .env editable from UI (#3360)
This commit is contained in:
@@ -9,7 +9,7 @@ class GlobalConfigService
|
|||||||
|
|
||||||
return if config_value.blank?
|
return if config_value.blank?
|
||||||
|
|
||||||
i = InstallationConfig.where(name: config_key).first_or_create(value: config_value)
|
i = InstallationConfig.where(name: config_key).first_or_create(value: config_value, locked: false)
|
||||||
# To clear a nil value that might have been cached in the previous call
|
# To clear a nil value that might have been cached in the previous call
|
||||||
GlobalConfig.clear_cache
|
GlobalConfig.clear_cache
|
||||||
i.value
|
i.value
|
||||||
|
|||||||
Reference in New Issue
Block a user