diff --git a/package-lock.json b/package-lock.json index 95bb7ec..3ba5cc9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -25,7 +25,7 @@ "chai": "^4.4.1", "chai-http": "^4.4.0", "eslint": "^8.57.0", - "eslint-config-gbv": "1.0.5", + "eslint-config-gbv": "1.1.0", "lint-staged": "^15.2.2", "mocha": "^10.3.0", "pre-commit": "^1.2.2", @@ -1280,9 +1280,9 @@ } }, "node_modules/eslint-config-gbv": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/eslint-config-gbv/-/eslint-config-gbv-1.0.5.tgz", - "integrity": "sha512-ph0H4X1buCEN9Nd9zGYmU+NuU9xssr7QdiEOFmKBQApIDa1fiSjoL9M/DWsBUg9e9PLe8ZQ8xIVWb4Gux+oGXQ==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/eslint-config-gbv/-/eslint-config-gbv-1.1.0.tgz", + "integrity": "sha512-/EbvbAwhV5UjVSo61EleQDyKDPa33oztXTW92jFJuH2mc7wSHuVqNHmxqVkfU+uzPq/J6hYXtHrUakv+qmUADA==", "dev": true, "peerDependencies": { "eslint": ">= 6", diff --git a/package.json b/package.json index 4b5a91c..cec48cc 100644 --- a/package.json +++ b/package.json @@ -44,7 +44,7 @@ "chai": "^4.4.1", "chai-http": "^4.4.0", "eslint": "^8.57.0", - "eslint-config-gbv": "1.0.5", + "eslint-config-gbv": "1.1.0", "lint-staged": "^15.2.2", "mocha": "^10.3.0", "pre-commit": "^1.2.2", diff --git a/src/backend/sqlite.js b/src/backend/sqlite.js index 9f436ea..70fa716 100644 --- a/src/backend/sqlite.js +++ b/src/backend/sqlite.js @@ -92,7 +92,9 @@ CREATE TABLE metadata ( this.db.exec("DELETE FROM subjects;") const insert = this.db.prepare("INSERT INTO subjects VALUES (@ppn, @voc, @notation)") const insertMany = this.db.transaction((data) => { - for (const row of data) insert.run(row) + for (const row of data) { + insert.run(row) + } }) return new Promise((resolve, reject) => { let results = []