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: description for job operation assignment
Brad Barbina9a3c3b0c3fe
diff --git a/apps/erp/app/trigger/notify.ts b/apps/erp/app/trigger/notify.tsindex 40059de7f4..affa4c01e0 100644--- a/apps/erp/app/trigger/notify.ts+++ b/apps/erp/app/trigger/notify.ts@@ -120,6 +120,7 @@ export const notifyTask = task({return `Job ${job?.data?.jobId} assigned to you`;+ case NotificationEvent.JobOperationAssignment:case NotificationEvent.JobOperationMessage:const [, operationId] = documentId.split(":");const jobOperation = await client@@ -133,7 +134,11 @@ export const notifyTask = task({throw jobOperation.error;}- return `New message on ${jobOperation?.data?.job?.jobId} operation: ${jobOperation?.data?.description}`;+ if (type === NotificationEvent.JobOperationAssignment) {+ return `New job operation assigned to you on ${jobOperation?.data?.job?.jobId}`;+ } else if (type === NotificationEvent.JobOperationMessage) {+ return `New message on ${jobOperation?.data?.job?.jobId} operation: ${jobOperation?.data?.description}`;+ }case NotificationEvent.DigitalQuoteResponse:const digitalQuote = await client