Skip to content

Commit

Permalink
Debugging Upstash
Browse files Browse the repository at this point in the history
  • Loading branch information
david emioma committed Apr 2, 2024
1 parent 1183451 commit 5248930
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/api/cart/[cartItemId]/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export async function PATCH(
},
});

await redis.set(`${user.id}-cart`, newCart);
// await redis.set(`${user.id}-cart`, newCart);

return NextResponse.json({ message: "Cart item updated!" });
} catch (err) {
Expand Down Expand Up @@ -214,7 +214,7 @@ export async function DELETE(
},
});

await redis.set(`${user.id}-cart`, newCart);
// await redis.set(`${user.id}-cart`, newCart);

return NextResponse.json({ message: "Cart item deleted!" });
} catch (err) {
Expand Down

0 comments on commit 5248930

Please sign in to comment.