Fakultas Ilmu Komputer UI

Commit cf47627e authored by Glenda Emanuella Sutanto's avatar Glenda Emanuella Sutanto
Browse files

[REFACTOR] Added cart_id in auth user serializer

parent 1085a3de
Pipeline #79292 passed with stages
in 23 minutes and 51 seconds
......@@ -25,8 +25,10 @@ class UserAuthSerializer(serializers.ModelSerializer):
if instance.cart.exists():
result['transaction_status'] = instance.cart.last().transaction_status
result['cart_id'] = instance.cart.last().id
else:
result['transaction_status'] = None
result['cart_id'] = None
return result
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment