Skip to content

Commit

Permalink
Correct status check list
Browse files Browse the repository at this point in the history
  • Loading branch information
acrosman committed Jan 15, 2022
1 parent 6df4520 commit 37f7e81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sf_calls.js
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ const buildDatabase = (settings) => {
logMessage('Database Create', 'Error', `Error ${err.errno}(${err.code}) creating table: ${err.message}.Full statement: \n ${err.sql}`);
tableStatuses[table] = false;
}
if (Object.getOwnPropertyNames(proposedSchema).length === tables.length) {
if (Object.getOwnPropertyNames(tableStatuses).length === tables.length) {
mainWindow.webContents.send('response_db_generated', {
status: true,
message: 'Database created',
Expand Down

0 comments on commit 37f7e81

Please sign in to comment.