fix(catalog): route item-table writes to the catalog they belong to
The items table is shared between both catalogs, but its four mutating actions were normal-only: moving, reordering, creating and updating a Builder Club offer wrote to catalog_items, so a BC edit either landed in the wrong catalog or hit an unknown column. Pass the catalog from the table through the actions and let the server resolve it. BC rows have no price, points or currency column, so the BC commands strip those fields instead of rejecting them. Moving and reordering now share one command that locks the category and writes the table for the same catalog, and BC writes revalidate the BC route.
This commit is contained in:
1 parent
e0efbef30d
commit
cede541813
3 files changed
+155
-50
No files matched your search
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user