fix: update sql code & download prettily JSON

This commit is contained in:
2026-05-09 13:08:35 +03:00
parent f3b407e1ed
commit debf1b165f
2 changed files with 2 additions and 1 deletions

View File

@@ -1062,6 +1062,7 @@ async function saveQuery() {
if (!res.ok) throw new Error(await res.text()) if (!res.ok) throw new Error(await res.text())
showNotification('OlapConstructor.notifications.saveSuccess', 'success') showNotification('OlapConstructor.notifications.saveSuccess', 'success')
isDirty.value = false isDirty.value = false
await fetchSql()
} catch (e: any) { } catch (e: any) {
showNotification('OlapConstructor.notifications.saveError', 'error', { error: e.message }) showNotification('OlapConstructor.notifications.saveError', 'error', { error: e.message })
} }

View File

@@ -649,7 +649,7 @@ public class MainVerticle extends AbstractVerticle {
rc.response() rc.response()
.putHeader("Content-Type", "application/json") .putHeader("Content-Type", "application/json")
.putHeader("Content-Disposition", "attachment; filename=olap_export.json") .putHeader("Content-Disposition", "attachment; filename=olap_export.json")
.end(fullJson.encode()); .end(fullJson.encodePrettily());
}); });
return router; return router;