Skip to content

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.

- add changes

Gaurav Bhatt8725fbdfb9ca
diff --git a/packages/database/supabase/functions/get-method/index.ts b/packages/database/supabase/functions/get-method/index.ts
index f7e985e692..f66f28ba85 100644
--- a/packages/database/supabase/functions/get-method/index.ts
+++ b/packages/database/supabase/functions/get-method/index.ts
@@ -2765,9 +2765,18 @@ serve(async (req: Request) => {
await trx
.insertInto("methodOperationStep")
.values(
- jobOperationStep.map(({ id: _id, nonConformanceActionId : _nonConformanceActionId, ...attribute }) => ({
- ...attribute,
+ jobOperationStep.map((step) => ({
operationId,
+ name: step.name,
+ type: step.type,
+ description: step.description,
+ required: step.required,
+ sortOrder: step.sortOrder,
+ unitOfMeasureCode: step.unitOfMeasureCode,
+ minValue: step.minValue,
+ maxValue: step.maxValue,
+ listValues: step.listValues,
+ fileTypes: step.fileTypes,
companyId,
createdBy: userId,
}))