Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.
TypeScript ai-agentsbill-of-materialserpinventory-managementleanmanufacturingmanufacturing-execution-systemmcp-servermesmrpopen-source-erppostgresqlproduction-planningqmsquality-management-systemreact-routerself-hostedsupabasetraceabilitytypescript
fix: data as variable and function in complete route
Brad Barbin7fc8298e937a
diff --git a/apps/erp/app/routes/x+/account+/$userId.attribute.tsx b/apps/erp/app/routes/x+/account+/$userId.attribute.tsxindex 79f6cb55cf..4102c9aa2a 100644--- a/apps/erp/app/routes/x+/account+/$userId.attribute.tsx+++ b/apps/erp/app/routes/x+/account+/$userId.attribute.tsx@@ -96,7 +96,7 @@ export async function action({ request, params }: ActionFunctionArgs) {}export default function UserAttributeValueRoute() {- // Remix bug+ // React Router bugreturn null;}diff --git a/apps/mes/app/routes/x+/complete.tsx b/apps/mes/app/routes/x+/complete.tsxindex 788aefbb1e..d957dad3bf 100644--- a/apps/mes/app/routes/x+/complete.tsx+++ b/apps/mes/app/routes/x+/complete.tsx@@ -161,9 +161,9 @@ export async function action({ request }: ActionFunctionArgs) {return redirect(`${path.to.operation(validation.data.jobOperationId)}`);} else {// biome-ignore lint/correctness/noUnusedVariables: suppressed due to migration- const { trackedEntityId, trackingType, ...data } = validation.data;+ const { trackedEntityId, trackingType, ...d } = validation.data;const insertProduction = await insertProductionQuantity(client, {- ...data,+ ...d,companyId,createdBy: userId});