Fakultas Ilmu Komputer UI

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

Merge branch 'add-cart-id-in-user-data' into 'staging'

Added cart_id in auth user serializer

See merge request !70
parents 1085a3de cf47627e
Pipeline #79300 passed with stages
in 33 minutes and 3 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
result['transaction_status'] = None
result['cart_id'] = None
return result
Supports Markdown
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