Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
fix closing parenthesis
dymani0f4eb8ff4c5d
diff --git a/src/routes/api/sql.js b/src/routes/api/sql.jsindex 9dec60aff0..9732a7a7b2 100644--- a/src/routes/api/sql.js+++ b/src/routes/api/sql.js@@ -33,7 +33,7 @@ function execute(req) {for (let query of queries) {query = query.trim();- while (query.startsWith('-- ') {+ while (query.startsWith('-- ')) {// Query starts with one or more SQL comments, discard these before we execute.const pivot = query.indexOf('\n');query = pivot > 0 ? query.substr(pivot + 1).trim() : "";