Skip to content

Commit

Permalink
typecheck in get invoice
Browse files Browse the repository at this point in the history
  • Loading branch information
guninwasan committed Nov 10, 2024
1 parent 70d3865 commit 4c2f4bd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend/core/api/public/endpoints/Invoices/get.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from drf_yasg.utils import swagger_auto_schema
from rest_framework import status
from rest_framework.decorators import api_view
from rest_framework.response import Response

from backend.core.api.public.decorators import require_scopes
from backend.core.api.public.serializers.invoices import InvoiceSerializer
Expand Down Expand Up @@ -45,7 +46,7 @@
)
@api_view(["GET"])
@require_scopes(["invoices:read"])
def get_invoices_endpoint(request: APIRequest, id: str) -> APIResponse:
def get_invoices_endpoint(request: APIRequest, id: str) -> Response:
try:
if request.team:
invoices = Invoice.objects.filter(organization=request.team, id=id)
Expand Down

0 comments on commit 4c2f4bd

Please sign in to comment.