feat: added promocode activation

also code reformatting and bug fixes
This commit is contained in:
ITQ
2025-01-26 11:33:03 +03:00
parent 43baa2af5c
commit 545201e4dd
11 changed files with 218 additions and 99 deletions
@@ -10,7 +10,7 @@ class AntifraudHealthCheck(BaseHealthCheckBackend):
def check_status(self) -> None:
try:
response = httpx.get(f"{settings.ANTIFRAUD_ENDPOINT}/api/ping")
response = httpx.get(f"{settings.ANTIFRAUD_ADDRESS}/api/ping")
if response.status_code >= status.INTERNAL_SERVER_ERROR:
self.add_error("Antifraud service is unaccessible")
except httpx.HTTPError: