From 6338d8e1f23b9406bbbc25166c045db47690ba25 Mon Sep 17 00:00:00 2001 From: daniel baker Date: Tue, 18 Aug 2020 20:52:44 +0200 Subject: [PATCH] convert seconds to msg --- lib/store.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/store.js b/lib/store.js index 18b8ee2..2604074 100644 --- a/lib/store.js +++ b/lib/store.js @@ -122,7 +122,7 @@ class Store { }; expiration = (seconds) => { const now = Date.now(); - let realSeconds = parseInt(seconds); + let realSeconds = parseInt(seconds*1000); if(isNaN(realSeconds) || realSeconds === 0 || realSeconds > 9999999999000) { return 9999999999000; }