feat: migrate facebook env vars to globalConfig (#3369)

Migrate facebook env vars to globalConfig and make it editable from the super admin UI.
This commit is contained in:
Vishnu Narayanan
2021-11-25 00:55:26 +05:30
committed by GitHub
parent c23e2c23d4
commit 3a48e08fe0
8 changed files with 26 additions and 12 deletions

View File

@@ -44,7 +44,7 @@ class Integrations::Facebook::MessageParser
# TODO : does this work ?
def sent_from_chatwoot_app?
app_id && app_id == ENV['FB_APP_ID'].to_i
app_id && app_id == GlobalConfigService.load('FB_APP_ID', '').to_i
end
end