Skip to content

Commit

Permalink
Merge pull request #233 from healthy-food-and-dietary-products/featur…
Browse files Browse the repository at this point in the history
…e/promocodes

Fix coupon_apply endpoint
  • Loading branch information
juliana-str authored Jan 5, 2024
2 parents 6b4f033 + e2841fb commit c579d18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/api/orders_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ def coupon_apply(self, request):
status=status.HTTP_201_CREATED,
)
except Coupon.DoesNotExist:
request.session["coupon_id"] = coupon.id
request.session["coupon_id"] = None
return Response(
{"errors": COUPON_ERROR_MESSAGE.format(code=code)},
status=status.HTTP_403_FORBIDDEN,
Expand Down

0 comments on commit c579d18

Please sign in to comment.