This commit is contained in:
chaosBreaking
2019-10-15 22:02:12 +08:00
parent 3aaf9244fc
commit c6d2e00cc8
2 changed files with 14 additions and 7 deletions

View File

@@ -34,10 +34,10 @@ const filename = 'minelog' + new Date().getFullYear() + new Date().getMonth() +
const mylog = logger(({ root: 'minelog', file: filename }));
const mongoose = require('mongoose');
const User = require('./src/modules/user/user.model');
const Fund = require('./src/modules/fund/fund.model');
const system = require('./src/modules/system/system.model');
const { createAction } = require('./src/modules/action/action.handler');
const User = require('../modules/user/user.model');
const Fund = require('../modules/fund/fund.model');
const system = require('../modules/system/system.model');
const { createAction } = require('../modules/action/action.handler');
const tokenReleaseRate = 0.02;
const inviteReward = 2.5;
@@ -180,7 +180,7 @@ async function mine (job = mock, done = mock) {
}
const start = async () => {
const SysConfig = require('./configSec');
const SysConfig = require('../../configSec');
mongoose.set('useCreateIndex', true);
const { DB_USER_NAME, DB_PASSWD, DB_HOST, DB_PORT, DB_NAME } = SysConfig;
const db = mongoose.connection;