From 5f19d6392f07d8324bead5f86b1a1d9ab3d6460a Mon Sep 17 00:00:00 2001 From: Joel Collins Date: Mon, 17 Jun 2019 15:04:57 +0100 Subject: [PATCH] pollTask resolves with full response data --- src/store.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/store.js b/src/store.js index aa1a67dd..88c03ee6 100644 --- a/src/store.js +++ b/src/store.js @@ -155,7 +155,7 @@ export default new Vuex.Store({ var result = response.data.status // If the task ends with success if(result == 'success') { - resolve(response.data.return) + resolve(response.data) } // If task ends with an error else if (result == 'error') { @@ -163,7 +163,7 @@ export default new Vuex.Store({ } // If the condition isn't met but the timeout hasn't elapsed, go again else if (Number(new Date()) < endTime) { - setTimeout(checkCondition, interval, resolve, reject) + setTimeout(checkCondition, interval, resolve, reject) } // Didn't match and too much time, reject! else {