Browse Source

Update Util.js

Kana 6 years ago
parent
commit
df90d3157a
1 changed files with 1 additions and 2 deletions
  1. 1 2
      src/api/utils/Util.js

+ 1 - 2
src/api/utils/Util.js

@@ -1,4 +1,3 @@
-// const config = require('../../../config');
 const jetpack = require('fs-jetpack');
 const jetpack = require('fs-jetpack');
 const randomstring = require('randomstring');
 const randomstring = require('randomstring');
 const path = require('path');
 const path = require('path');
@@ -10,7 +9,7 @@ const db = require('knex')({
 		user: process.env.DB_USER,
 		user: process.env.DB_USER,
 		password: process.env.DB_PASSWORD,
 		password: process.env.DB_PASSWORD,
 		database: process.env.DB_DATABASE,
 		database: process.env.DB_DATABASE,
-		filename: '../../../database.sqlite'
+		filename: path.join(__dirname, '..', '..', '..', 'database.sqlite')
 	}
 	}
 });
 });
 const moment = require('moment');
 const moment = require('moment');