Skip to content

Commit

Permalink
fix(schedule): Messaging url
Browse files Browse the repository at this point in the history
  • Loading branch information
andreroggeri committed Apr 7, 2024
1 parent 7919bfd commit 5e9353f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
10 changes: 0 additions & 10 deletions backend/app.json

This file was deleted.

4 changes: 3 additions & 1 deletion backend/app/schedule/service/notification/whatsapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ def send_notification(self, schedule: Schedule) -> bool:
'message': schedule.get_message(),
}

response = requests.post(settings.MESSAGING_URL, json=payload, headers={
url = f'{settings.MESSAGING_URL}/v1/messages'

response = requests.post(url, json=payload, headers={
'Authorization': f'Bearer {settings.MESSAGING_API_KEY}',
'Content-Type': 'application/json'
})
Expand Down

0 comments on commit 5e9353f

Please sign in to comment.