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.

fix: redis result for custom fields

Brad Barbin4246e559bb95
diff --git a/apps/carbon/app/modules/shared/shared.server.ts b/apps/carbon/app/modules/shared/shared.server.ts
index e6df09a43c..d110072f51 100644
--- a/apps/carbon/app/modules/shared/shared.server.ts
+++ b/apps/carbon/app/modules/shared/shared.server.ts
@@ -44,7 +44,7 @@ export async function getCustomFieldsSchemas(
let schema: CustomFieldsTableType[] | null = null;
try {
- schema = JSON.parse((await redis.get(key)) || "null");
+ schema = (await redis.get(key)) as CustomFieldsTableType[] | null;
} finally {
if (schema) {
return {