Update deps

This commit is contained in:
Lee Robinson
2024-12-06 08:23:35 -06:00
parent 386392be02
commit 88762ba1bc
3 changed files with 631 additions and 1248 deletions

View File

@@ -98,18 +98,9 @@ export async function updateItemQuantity(
export async function redirectToCheckout() {
let cartId = (await cookies()).get('cartId')?.value;
if (!cartId) {
return 'Missing cart ID';
}
let cart = await getCart(cartId);
if (!cart) {
return 'Error fetching cart';
}
redirect(cart.checkoutUrl);
redirect(cart!.checkoutUrl);
}
export async function createCartAndSetCookie() {