Skip to content

Commit 3e2eb6a

Browse files
committed
Small sqlite output code improvements
1 parent e49cb9d commit 3e2eb6a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/output/sqlite.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ class SqliteDatabaseAbstraction {
138138
*
139139
* @param name
140140
* @param columnNameTypes
141-
* @returns {Promise<any>}
141+
* @returns {Promise<void>}
142142
*/
143143
async createTable(name, columnNameTypes) {
144144
await new Promise((resolve, reject) => {
@@ -226,8 +226,8 @@ class Sqlite extends Base {
226226
async provisionDatabase() {
227227
await this.db.open();
228228

229-
for(const table of this.tables) {
230-
await this.db.buildTable(table[1]);
229+
for(const table of this.tables.values()) {
230+
await this.db.buildTable(table);
231231
}
232232

233233
if (this.config.get('report').includes('stats')) {

0 commit comments

Comments
 (0)