Convert timeout arguments from seconds to microseconds

This commit is contained in:
Joel Collins 2019-03-29 16:16:54 +00:00
parent 691817568a
commit d154f08a50

View file

@ -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!