fix: complete mock start lifecycle

This commit is contained in:
2026-08-04 15:07:36 +01:00
parent 6e4db76807
commit 6c033e1f44
+1 -1
View File
@@ -204,7 +204,7 @@ export async function mockFetch(url, options) {
if (url.indexOf("/api/cases/start") === 0 && options && options.method === "POST") {
var r1 = await handleStartCase(body && body.scenario);
return new Response(JSON.stringify(r1.data), { status: r1.data.success ? 200 : 500, headers:{ "Content-Type":"application/json" } });
return new Response(JSON.stringify(r1.data), { status: r1.success ? 200 : 500, headers:{ "Content-Type":"application/json" } });
}
if (url.indexOf("/api/cases/update") === 0 && options && options.method === "POST") {