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 forgot password bug
Brad Barbinc08c4f432f97
diff --git a/apps/carbon/app/lib/bullmq/bullmq.server.ts b/apps/carbon/app/lib/bullmq/bullmq.server.tsindex f31889c2a7..a6b62f2352 100644--- a/apps/carbon/app/lib/bullmq/bullmq.server.ts+++ b/apps/carbon/app/lib/bullmq/bullmq.server.ts@@ -1,7 +1,7 @@import { redis } from "@carbon/redis";import type { Processor } from "bullmq";import { Queue as BullQueue, Worker } from "bullmq";-import { isVercel } from "~/config/env";+// import { isVercel } from "~/config/env";type RegisteredQueue = {queue: BullQueue;@@ -15,16 +15,16 @@ declare global {const registeredQueues =global.__registeredQueues || (global.__registeredQueues = {});-const mockQueue = {- add: (args: any) => Promise.resolve(),- addBulk: (args: any) => Promise.resolve(),-};+// const mockQueue = {+// add: (args: any) => Promise.resolve(),+// addBulk: (args: any) => Promise.resolve(),+// };export const Queue = <Payload>(name: string,handler: Processor<Payload>): BullQueue<Payload> => {- if (isVercel()) return mockQueue as any;+ // if (isVercel()) return mockQueue as any;if (registeredQueues[name]) {return registeredQueues[name].queue;}diff --git a/apps/carbon/app/routes/_public+/forgot-password.tsx b/apps/carbon/app/routes/_public+/forgot-password.tsxindex 4744b7e6dc..e28df2d2b1 100644--- a/apps/carbon/app/routes/_public+/forgot-password.tsx+++ b/apps/carbon/app/routes/_public+/forgot-password.tsx@@ -54,13 +54,9 @@ export async function action({ request }: ActionArgs): FormActionData {status: 500,});}- } else {- return json(error(null, "User has been deactivated"), {- status: 500,- });}- return json(success("Magic link sent"));+ return json(success("Success"));}export default function ForgotPasswordRoute() {