Skip to content

Commit

Permalink
Fix phone provider initialization (#2434)
Browse files Browse the repository at this point in the history
  • Loading branch information
Konstantinov-Innokentii authored Jul 5, 2023
1 parent 91b975a commit 3f575b5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion engine/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -724,8 +724,11 @@ class BrokerTypes:
PHONE_PROVIDERS = {
"twilio": "apps.twilioapp.phone_provider.TwilioPhoneProvider",
# "simple": "apps.phone_notifications.simple_phone_provider.SimplePhoneProvider",
"zvonok": "apps.zvonok.phone_provider.ZvonokPhoneProvider",
}

if IS_OPEN_SOURCE:
PHONE_PROVIDERS["zvonok"] = "apps.zvonok.phone_provider.ZvonokPhoneProvider"

PHONE_PROVIDER = os.environ.get("PHONE_PROVIDER", default="twilio")

ZVONOK_API_KEY = os.getenv("ZVONOK_API_KEY", None)
Expand Down

0 comments on commit 3f575b5

Please sign in to comment.