From d154f08a50d125559bef3cfa2cbfb8deed207ed3 Mon Sep 17 00:00:00 2001 From: Joel Collins Date: Fri, 29 Mar 2019 16:16:54 +0000 Subject: [PATCH] Convert timeout arguments from seconds to microseconds --- src/store.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/store.js b/src/store.js index 6adc5fd2..e3c275aa 100644 --- a/src/store.js +++ b/src/store.js @@ -103,8 +103,8 @@ export default new Vuex.Store({ }, pollTask(context, [taskId, timeout, interval]) { - var endTime = Number(new Date()) + (timeout || 30000); - interval = interval || 500; + var endTime = Number(new Date()) + (timeout*1000 || 30000); + interval = interval*1000 || 500; var checkCondition = function(resolve, reject) { // If the condition is met, we're done!