Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Small sqlite output code improvements
  • Loading branch information
fabianhauser committed Mar 22, 2019
commit 3e2eb6a370d7ccc4df694bebf17a9f6fafa6d0ad
6 changes: 3 additions & 3 deletions src/output/sqlite.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ class SqliteDatabaseAbstraction {
*
* @param name
* @param columnNameTypes
* @returns {Promise<any>}
* @returns {Promise<void>}
*/
async createTable(name, columnNameTypes) {
await new Promise((resolve, reject) => {
Expand Down Expand Up @@ -226,8 +226,8 @@ class Sqlite extends Base {
async provisionDatabase() {
await this.db.open();

for(const table of this.tables) {
await this.db.buildTable(table[1]);
for(const table of this.tables.values()) {
await this.db.buildTable(table);
}

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