Open gpascualg opened 3 weeks ago
Not sure this is the proper fix, but it does fix it
ALTER TABLE IF EXISTS public.shipping_method_tax_line
DROP CONSTRAINT "FK_926ca9f29014af8091722dede08"
, ADD CONSTRAINT "FK_926ca9f29014af8091722dede08" FOREIGN KEY (shipping_method_id)
REFERENCES public.shipping_method (id) MATCH SIMPLE
ON UPDATE NO ACTION
ON DELETE CASCADE;
Currently, it is ON DELETE NO ACTION
Bug report
Describe the bug
After a few failed checkouts, trying to do any modification to the cart (changing quantity or removing items) will fail. Details on how to reproduce below.
System information
Medusa version (including plugins): 1.18.0, freshly installed Node.js version: v20.14.0 Database: psql 16 Operating system: Windows Browser (if relevant): any
Steps to reproduce the behavior
To reproduce:
Since I don't have a dev env setup, to observe the error I added
console.log(err)
inmiddlewares\error-handler.js:13
See below the issueExpected behavior
Item is removed / quantity is changed