Skip to content

Commit

Permalink
Fix retrieve in OTP for slots
Browse files Browse the repository at this point in the history
vigneshhari committed Dec 20, 2024
1 parent a2e9360 commit 88a9cb4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions care/emr/api/otp_viewsets/slot.py
Original file line number Diff line number Diff line change
@@ -15,7 +15,7 @@
from care.emr.models import TokenBooking, TokenSlot
from care.emr.resources.scheduling.slot.spec import (
TokenBookingReadSpec,
TokenBookingRetrieveSpec,
TokenBookingRetrieveSpec, TokenSlotBaseSpec,
)
from care.facility.models import PatientRegistration
from config.patient_otp_authentication import (
@@ -32,7 +32,7 @@ class OTPSlotViewSet(EMRRetrieveMixin, EMRBaseViewSet):
authentication_classes = [JWTTokenPatientAuthentication]
permission_classes = [OTPAuthenticatedPermission]
database_model = TokenSlot
pydantic_read_model = TokenBookingRetrieveSpec
pydantic_read_model = TokenSlotBaseSpec

@action(detail=False, methods=["POST"])
def get_slots_for_day(self, request, *args, **kwargs):

0 comments on commit 88a9cb4

Please sign in to comment.