Set correct default ghost expiration
This commit is contained in:
@@ -250,7 +250,7 @@ async function setGhost(user, password, expiresAt) {
|
||||
assert.strictEqual(typeof password, 'string');
|
||||
assert.strictEqual(typeof expiresAt, 'number');
|
||||
|
||||
expiresAt = expiresAt || DEFAULT_GHOST_LIFETIME;
|
||||
expiresAt = expiresAt || (Date.now() + DEFAULT_GHOST_LIFETIME);
|
||||
|
||||
debug(`setGhost: ${user.username} expiresAt ${expiresAt}`);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user