Skip to content

armgit / TREK

Public Imported from GitHub
0

The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.

fix for test suit

Marek Maslowskid04a4bcbf81c
diff --git a/server/tests/integration/memories-synology.test.ts b/server/tests/integration/memories-synology.test.ts
index a21690ee7..3c7d0f227 100644
--- a/server/tests/integration/memories-synology.test.ts
+++ b/server/tests/integration/memories-synology.test.ts
@@ -57,10 +57,10 @@ vi.mock('../../src/utils/ssrfGuard', async () => {
apiName = params.get('api') || '';
} catch {}
if (!apiName && init?.body) {
- apiName = params.get('api') || '';
params = init.body instanceof URLSearchParams
? init.body
: new URLSearchParams(String(init.body));
+ apiName = params.get('api') || '';
}
// Auth login — used by settings save, status, test-connection