chore: update
This commit is contained in:
@@ -109,7 +109,8 @@ public class CartService {
|
||||
Cart cart = new Cart();
|
||||
cart.Id = cartId;
|
||||
cart.eateryId = UUID.fromString(data.get("_metadata_eatery"));
|
||||
cart.userId = UUID.fromString(data.get("_metadata_owner"));
|
||||
String ownerStr = data.get("_metadata_owner");
|
||||
cart.userId = "GUEST".equals(ownerStr) ? null : UUID.fromString(ownerStr);
|
||||
cart.items = new ArrayList<>();
|
||||
|
||||
long total = 0;
|
||||
|
||||
Reference in New Issue
Block a user