Updated dependencies. Added periodic memory logger.
This commit is contained in:
@@ -4,7 +4,11 @@ const config = require('config');
|
||||
const yargs = require('yargs');
|
||||
const moment = require('moment');
|
||||
|
||||
function interpretAfter(after) {
|
||||
function interpretAfter(after, ignoreIfEmpty = false) {
|
||||
if (!after && ignoreIfEmpty) {
|
||||
return null;
|
||||
}
|
||||
|
||||
if (!after) {
|
||||
return new Date(0, 0, 0);
|
||||
}
|
||||
@@ -313,6 +317,6 @@ const { argv } = yargs
|
||||
default: 60000,
|
||||
})
|
||||
.coerce('after', interpretAfter)
|
||||
.coerce('actors-update', interpretAfter);
|
||||
.coerce('actors-update', (after) => interpretAfter(after, true));
|
||||
|
||||
module.exports = argv;
|
||||
|
||||
Reference in New Issue
Block a user