Fix lint
parent
e1804a9918
commit
c2822893ca
|
@ -114,7 +114,7 @@ if (process.env.NODE_ENV === config.test.unit.env || process.env.NODE_ENV === co
|
|||
const mongoServer = new MongodbMemoryServer();
|
||||
mongoose.Promise = Promise;
|
||||
mongoServer.getConnectionString().then((mongoUri) => {
|
||||
mongoose.connect(mongoUri, { useNewUrlParser: true });
|
||||
mongoose.connect(mongoUri, {useNewUrlParser: true});
|
||||
|
||||
mongoose.connection.on('error', (e) => {
|
||||
if (e.message.code === 'ETIMEDOUT') {
|
||||
|
@ -153,7 +153,7 @@ if (process.env.NODE_ENV === config.test.unit.env || process.env.NODE_ENV === co
|
|||
}
|
||||
logger(`Master ${process.pid} is running. Forking ${numWorkers} workers`);
|
||||
|
||||
//Check if worker id is died
|
||||
// Check if worker id is died
|
||||
cluster.on('exit', (worker, code, signal) => {
|
||||
logger(`worker ${worker.process.pid} died`);
|
||||
});
|
||||
|
|
|
@ -107,7 +107,7 @@ const parseWarLog = (lineArray, war) => {
|
|||
const target = getPlayerInfoFromString(targetString);
|
||||
const kill = {
|
||||
war: war._id,
|
||||
time: getFullTimeDate(war.date, line.split(WHITESPACE)[5])
|
||||
time: getFullTimeDate(war.date, line.split(WHITESPACE)[5]),
|
||||
};
|
||||
if (shooter) {
|
||||
kill.shooter = shooter.name;
|
||||
|
|
Loading…
Reference in New Issue