orchestration fixes

This commit is contained in:
Storme-bit
2026-04-05 05:46:06 -07:00
parent eccda21992
commit 4c8127e806
5 changed files with 45 additions and 92 deletions

View File

@@ -7,7 +7,7 @@ const BASE_URL = getEnv('MEMORY_SERVICE_URL', 'http://localhost:3002');
async function getSessionByExternalId(externalId) {
const res = await fetch(`${BASE_URL}/sessions/by-external/${externalId}`);
if (!res.status === 400) return null; // Not found or bad request
if (!res.status === 404) return null; // Not found or bad request
if (!res.ok) throw new Error(`Memory service error: ${res.status} ${res.statusText}`); // Other errors
return res.json();