From 2f7d1d441a82c9e19e09542909d25e7f9e5b86f6 Mon Sep 17 00:00:00 2001 From: wkarts <57051272+wkarts@users.noreply.github.com> Date: Sat, 5 Oct 2024 08:51:46 -0300 Subject: [PATCH] Update unoapi_webhook_setup_service.rb --- app/services/whatsapp/unoapi_webhook_setup_service.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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