Refactor send_otp function to remove unused otp parameter and improve clarity
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 2m35s

This commit is contained in:
2025-05-30 22:15:14 +05:00
parent e0dfc28590
commit 5b4d0e6488
2 changed files with 13 additions and 10 deletions

View File

@ -8,7 +8,7 @@ api_url = str(config("SMS_API_URL", cast=str, default=""))
api_key = str(config("SMS_API_KEY", cast=str, default=""))
def send_otp(mobile: str, otp: str, message: str):
def send_otp(mobile: str, message: str):
if not api_url or not api_key:
logger.debug("Failed to send SMS. Missing SMS_API_URL or SMS_API_KEY.")
return False