fix(est): retain unchanged JDL content

This commit is contained in:
2026-11-06 21:42:13 +09:00
parent 8253fb8424
commit d0f96ff1d6
5 changed files with 46 additions and 6 deletions
+1 -1
View File
@@ -155,7 +155,7 @@ const server = http.createServer(async (req, res) => {
}
if (req.method === "POST" && url.pathname === "/api/import-jdl") {
const empty = vm.runInContext("EstNative.empty()", engine);
reply(res, 200, calculate(jdl.read(await body(req), empty)));
reply(res, 200, jdl.markOriginal(calculate(jdl.read(await body(req), empty))));
return;
}
if (req.method === "POST" && url.pathname === "/api/export-jdl") {