Co-authored-by: TakahashiNg <83152264+TakahashiNguyen@users.noreply.github.com> Reviewed-on: #53
This commit was merged in pull request #53.
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