chore(): minor fixes around codebase
This commit is contained in:
@@ -5,7 +5,6 @@ from django.http import Http404, HttpRequest
|
||||
from ninja import Router
|
||||
from prometheus_client import Counter
|
||||
|
||||
from api.v1.auth.endpoints import jwt_bearer
|
||||
from api.v1.events.schemas import (
|
||||
EventErrorOut,
|
||||
EventTypeCreateIn,
|
||||
@@ -21,6 +20,7 @@ from apps.events.services import (
|
||||
event_type_update,
|
||||
process_events_batch,
|
||||
)
|
||||
from apps.users.auth.bearer import jwt_bearer
|
||||
|
||||
EVENTS_INGESTED = Counter(
|
||||
"lotty_events_ingested_total",
|
||||
@@ -62,9 +62,7 @@ def list_event_types(
|
||||
is_active: bool | None = None, # noqa: FBT001
|
||||
) -> tuple[int, list[EventTypeOut]]:
|
||||
qs = event_type_list(is_active=is_active)
|
||||
return HTTPStatus.OK, [
|
||||
EventTypeOut.model_validate(metric) for metric in qs
|
||||
]
|
||||
return HTTPStatus.OK, [EventTypeOut.model_validate(et) for et in qs]
|
||||
|
||||
|
||||
@router.get(
|
||||
|
||||
Reference in New Issue
Block a user