mirror of
https://github.com/zadam/trilium.git
synced 2025-10-26 07:46:30 +01:00
fix closing parenthesis
This commit is contained in:
@@ -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() : "";
|
||||
|
||||
Reference in New Issue
Block a user