memory.js fix

This commit is contained in:
Storme-bit
2026-04-05 06:20:12 -07:00
parent 8b0b864c03
commit 8a61952a85

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 === 404) 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();