From 298a695a0b8d4b8ed6050ba0810b5e26c9b40ce7 Mon Sep 17 00:00:00 2001 From: Tamas Besenyei Date: Mon, 19 Apr 2021 14:44:00 +0200 Subject: [PATCH 1/2] fix: move actionQueue.push below loadStore --- src/proxy/cache/actionStore.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/proxy/cache/actionStore.js b/src/proxy/cache/actionStore.js index f5d65171..1df01226 100644 --- a/src/proxy/cache/actionStore.js +++ b/src/proxy/cache/actionStore.js @@ -59,12 +59,12 @@ export default function actionStoreFatory(id) { * @returns {Promise} resolves when the action is stored */ push: function push(action, params, timestamp) { + actionQueue.push({ + action: action, + timestamp: timestamp || Date.now(), + parameters: params + }); return loadStore().then(function(actionStore) { - actionQueue.push({ - action: action, - timestamp: timestamp || Date.now(), - parameters: params - }); return actionStore.setItem(storeKey, actionQueue); }); }, From 7d4f8984375066e14c32d8d86d712b9073aa9744 Mon Sep 17 00:00:00 2001 From: "maria.cano" Date: Thu, 22 Apr 2021 11:49:46 +0200 Subject: [PATCH 2/2] chore: bump version --- package-lock.json | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index 060e1952..b2d7b3c4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@oat-sa/tao-test-runner-qti", - "version": "2.20.3", + "version": "2.20.4", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 0d77f97d..32639a5b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@oat-sa/tao-test-runner-qti", - "version": "2.20.3", + "version": "2.20.4", "description": "TAO Test Runner QTI implementation", "files": [ "dist",