(20250303) Added print statements.
This commit is contained in:
@@ -340,6 +340,7 @@ async def verify_otp(
|
||||
)
|
||||
|
||||
# If the OTP failed:
|
||||
print("OTP RESPONSE:", otp_response)
|
||||
if not otp_response.success: return ResponseModel(
|
||||
status_code = StatusCodes.FAILED,
|
||||
http_code = HttpCodes.UNAUTHORIZED,
|
||||
@@ -388,9 +389,12 @@ async def verify_otp(
|
||||
|
||||
# Done here:
|
||||
success = api_response.is_success
|
||||
print("ADD CLIENT WITH NOTES CODE:", api_response.status_code)
|
||||
print("ADD CLIENT WITH NOTES JSON:", api_response.json())
|
||||
return ResponseModel(
|
||||
status_code = StatusCodes.OK if success else StatusCodes.FAILED,
|
||||
http_code = HttpCodes.SUCCESS if success else HttpCodes.UNAUTHORIZED
|
||||
http_code = HttpCodes.SUCCESS if success else HttpCodes.UNAUTHORIZED,
|
||||
message = api_response.json().get("message", "N/A")
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user