You've already forked Promocode-API
mirror of
https://github.com/devitq/Promocode-API.git
synced 2026-05-22 23:17:10 +00:00
chore!: small improvement in naming
This commit is contained in:
@@ -5,7 +5,7 @@ from django.conf import settings
|
|||||||
from health_check.backends import BaseHealthCheckBackend
|
from health_check.backends import BaseHealthCheckBackend
|
||||||
|
|
||||||
|
|
||||||
class AntifraudHealthcheck(BaseHealthCheckBackend):
|
class AntifraudHealthCheck(BaseHealthCheckBackend):
|
||||||
critical_service = False
|
critical_service = False
|
||||||
|
|
||||||
def check_status(self) -> None:
|
def check_status(self) -> None:
|
||||||
@@ -20,4 +20,4 @@ class AntifraudHealthcheck(BaseHealthCheckBackend):
|
|||||||
return self.__class__.__name__
|
return self.__class__.__name__
|
||||||
|
|
||||||
|
|
||||||
__all__ = ["AntifraudHealthcheck"]
|
__all__ = ["AntifraudHealthCheck"]
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import environ
|
|||||||
from django.utils.translation import gettext_lazy as _
|
from django.utils.translation import gettext_lazy as _
|
||||||
from health_check.plugins import plugin_dir
|
from health_check.plugins import plugin_dir
|
||||||
|
|
||||||
from config.integrations.antifraud.healthcheck import AntifraudHealthcheck
|
from config.integrations.antifraud.healthcheck import AntifraudHealthCheck
|
||||||
|
|
||||||
BASE_DIR = Path(__file__).resolve().parent.parent
|
BASE_DIR = Path(__file__).resolve().parent.parent
|
||||||
|
|
||||||
@@ -34,7 +34,7 @@ ANTIFRAUD_ENDPOINT = (
|
|||||||
|
|
||||||
# Register healthcheck
|
# Register healthcheck
|
||||||
|
|
||||||
plugin_dir.register(AntifraudHealthcheck)
|
plugin_dir.register(AntifraudHealthCheck)
|
||||||
|
|
||||||
|
|
||||||
# Caching
|
# Caching
|
||||||
|
|||||||
Reference in New Issue
Block a user