Skip to content

Commit

Permalink
Fix refresh db setup. Resolves issue #134
Browse files Browse the repository at this point in the history
  • Loading branch information
erssebaggala committed Oct 25, 2019
1 parent 957d6e3 commit 4de2f34
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion background/background-process.html
Original file line number Diff line number Diff line change
Expand Up @@ -753,7 +753,7 @@ <h1>Background process</h1>
try{
if(task === 'setup_database'){
//setupBodaDatabase(options.hostname, options.port, options.username, options.password);
const result = await utils.runMigrations(options.hostname, options.port, options.username, options.password);
const result = await utils.runMigrations(options.hostname, options.port, options.username, options.password, options.refreshSetup);
sendLogToUI('setup_database',result.status, result.message);
}
}catch(err){
Expand Down
2 changes: 1 addition & 1 deletion background/background-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@ async function runMigrations(hostname, port, username, password, refreshSetup){

//Fresh installation
if(refreshSetup === true){

log.info("Running refresh database setup...");
const connectionString = `postgresql://${username}:${password}@${hostname}:${port}/postgres`;
const client = new Client({
connectionString: connectionString,
Expand Down

0 comments on commit 4de2f34

Please sign in to comment.