Skip to content

Commit

Permalink
Merge pull request #22 from kokkoniemi/feature/pkg
Browse files Browse the repository at this point in the history
updated gui
  • Loading branch information
kokkoniemi committed May 2, 2024
2 parents 58a7c02 + a2a4c9c commit 32ce52b
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 16 deletions.
6 changes: 5 additions & 1 deletion models/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ const fs = require('fs');
const path = require('path');
const Sequelize = require('sequelize');
const basename = path.basename(__filename);
const config = JSON.parse(fs.readFileSync(path.join(path.dirname(process.execPath), 'db-config.json'), 'utf-8'));
let configPath = path.join(__dirname, '..', 'db-config.json');
if (!fs.existsSync(configPath)) {
configPath = path.join(path.dirname(process.execPath), 'db-config.json');
}
const config = JSON.parse(fs.readFileSync(configPath, 'utf-8'));
const db = {};

let sequelize;
Expand Down
Loading

0 comments on commit 32ce52b

Please sign in to comment.