Fix setGhost api usage

This commit is contained in:
Johannes Zellner
2021-09-17 15:52:52 +02:00
parent f75b0ebff9
commit 2ea5786fcc
2 changed files with 3 additions and 3 deletions

View File

@@ -247,8 +247,8 @@ async function add(email, data, auditSource) {
async function setGhost(user, password, expiresAt) {
assert.strictEqual(typeof user, 'object');
assert.strictEqual(typeof newPassword, 'string');
assert.strictEqual(typeof auditSource, 'object');
assert.strictEqual(typeof password, 'string');
assert.strictEqual(typeof expiresAt, 'number');
expiresAt = expiresAt || DEFAULT_GHOST_LIFETIME;