From 63d40da837825e49e154630d3725ecae89f590cd Mon Sep 17 00:00:00 2001 From: Matthew R Date: Mon, 28 Oct 2019 00:17:25 -0400 Subject: [PATCH] fix lock --- src/commands/lock.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/lock.ts b/src/commands/lock.ts index af561ef..3a1c20c 100644 --- a/src/commands/lock.ts +++ b/src/commands/lock.ts @@ -28,7 +28,7 @@ export default class Lock extends Command { const expiry = new Date(); const lockLength = args[1].match(/[a-z]+|[^a-z]+/gi); // @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); let processed: boolean = false; if (!momentMilliseconds) processed = true;