Skip to content

Build your personal knowledge base with Trilium Notes

fix closing parenthesis

dymani0f4eb8ff4c5d
diff --git a/src/routes/api/sql.js b/src/routes/api/sql.js
index 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() : "";