Updated dependencies. Added periodic memory logger.

This commit is contained in:
DebaucheryLibrarian
2021-11-20 23:59:15 +01:00
parent a867817dc1
commit 26539b74a5
109 changed files with 10238 additions and 10833 deletions

View File

@@ -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;