diff --git a/app/services/whatsapp/unoapi_webhook_setup_service.rb b/app/services/whatsapp/unoapi_webhook_setup_service.rb index 12a0dc246af89..aacf60ffcf6d9 100644 --- a/app/services/whatsapp/unoapi_webhook_setup_service.rb +++ b/app/services/whatsapp/unoapi_webhook_setup_service.rb @@ -65,7 +65,7 @@ def url(whatsapp_channel) def headers(whatsapp_channel) { - Authorization: GlobalConfigService.load('UNOAPI_AUTH_TOKEN', whatsapp_channel.provider_config['api_key']), + Authorization: ENV.fetch('UNOAPI_AUTH_TOKEN', whatsapp_channel.provider_config['api_key']), 'Content-Type': 'application/json' } end