Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

🐛 fix(userMemories): 404/405 issue due to incorrectly used workflow name and mounted catch-all route (#10995)

Neko45996c6f2305
diff --git a/src/app/(backend)/api/workflows/memory-user-memory/pipelines/chat-topic/process-user-topics/route.ts b/src/app/(backend)/api/workflows/memory-user-memory/pipelines/chat-topic/process-user-topics/route.ts
index 4f8b4dd3452..4d6479cbba0 100644
--- a/src/app/(backend)/api/workflows/memory-user-memory/pipelines/chat-topic/process-user-topics/route.ts
+++ b/src/app/(backend)/api/workflows/memory-user-memory/pipelines/chat-topic/process-user-topics/route.ts
@@ -101,7 +101,7 @@ export const { POST } = serve<MemoryExtractionPayloadInput>(async (context) => {
userId,
userIds: [userId],
},
- workflow: orchestratorWorkflow
+ workflow: orchestratorWorkflow,
}
),
),
diff --git a/src/server/services/memory/userMemory/extract.ts b/src/server/services/memory/userMemory/extract.ts
index 3ee83be8f69..82b0195e184 100644
--- a/src/server/services/memory/userMemory/extract.ts
+++ b/src/server/services/memory/userMemory/extract.ts
@@ -1768,9 +1768,9 @@ const WORKFLOW_PATHS = {
} as const;
export const TOPIC_WORKFLOW_NAMES = {
- cep: 'memory:user-memory:extract:users:topics:extract-layers:cep',
- identity: 'memory:user-memory:extract:users:topics:extract-layers:identity',
- orchestrator: 'memory:user-memory:extract:users:topics:extract-layers:orchestrator',
+ cep: 'process-topics/extract-layers/cep',
+ identity: 'process-topics/extract-layers/identity',
+ orchestrator: 'process-topics/extract-layers/orchestrator',
} as const;
const getWorkflowUrl = (path: string, baseUrl: string) => {