merge-requests/1/merge
Matthew 2019-10-28 00:17:25 -04:00
parent 3f18050a27
commit 63d40da837
No known key found for this signature in database
GPG Key ID: 766BE43AE75F7559
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ export default class Lock extends Command {
const expiry = new Date(); const expiry = new Date();
const lockLength = args[1].match(/[a-z]+|[^a-z]+/gi); const lockLength = args[1].match(/[a-z]+|[^a-z]+/gi);
// @ts-ignore // @ts-ignore
const momentMilliseconds = moment.duration(Number(lockLength[0]), lockLength[1]).asMilliseconds; const momentMilliseconds = moment.duration(Number(lockLength[0]), lockLength[1]).asMilliseconds();
expiry.setMilliseconds(momentMilliseconds); expiry.setMilliseconds(momentMilliseconds);
let processed: boolean = false; let processed: boolean = false;
if (!momentMilliseconds) processed = true; if (!momentMilliseconds) processed = true;