mirror of
https://github.com/i701/sarlink-portal-api.git
synced 2025-06-05 16:56:19 +00:00
Remove environment variable check for SMS_API_URL and SMS_API_KEY during initialization
Some checks failed
Build and Push Docker Images / Build and Push Docker Images (push) Failing after 1m46s
Some checks failed
Build and Push Docker Images / Build and Push Docker Images (push) Failing after 1m46s
This commit is contained in:
parent
20db39ee55
commit
cc3d2ab3b7
@ -7,11 +7,6 @@ logger = logging.getLogger(__name__)
|
||||
api_url = str(config("SMS_API_URL", cast=str, default=""))
|
||||
api_key = str(config("SMS_API_KEY", cast=str, default=""))
|
||||
|
||||
if not api_url or not api_key:
|
||||
raise ValueError(
|
||||
"SMS_API_URL and SMS_API_KEY must be set in the environment variables."
|
||||
)
|
||||
|
||||
|
||||
def send_otp(mobile: str, otp: str, message: str):
|
||||
if not api_url or not api_key:
|
||||
|
Loading…
x
Reference in New Issue
Block a user