Skip to content

Fixing cart actions#136

Open
JDLanctot wants to merge 3 commits intosadmann7:mainfrom
JDLanctot:fix-cart-and-checkout
Open

Fixing cart actions#136
JDLanctot wants to merge 3 commits intosadmann7:mainfrom
JDLanctot:fix-cart-and-checkout

Conversation

@JDLanctot
Copy link
Copy Markdown
Contributor

One spot is hard coded to have the dbPrefix as skateshop in cart.ts actions because using the dbPrefix was causing an error.

@vercel
Copy link
Copy Markdown

vercel Bot commented May 6, 2024

Someone is attempting to deploy a commit to the sadmann7 Team on Vercel.

A member of the Team first needs to authorize it.

@sadmann7
Copy link
Copy Markdown
Owner

thanks for the pr.

can you show what does the error message say?

i updated drizzle just now, maybe this will fix it

@JDLanctot
Copy link
Copy Markdown
Contributor Author

I'll check if drizzle update fixes it before getting back to you.

@JDLanctot
Copy link
Copy Markdown
Contributor Author

Just made it so that types are cast in sql when working with cart.items, updated cart.items to be json[], and then updated the getUniqueStoreIds() server action to use sql to unnest the the json[] and get the corresponding products to determine the distinct store ids.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants