summaryrefslogtreecommitdiff
path: root/src/store/api.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/store/api.js')
-rw-r--r--src/store/api.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/store/api.js b/src/store/api.js
index 77d94329..02472881 100644
--- a/src/store/api.js
+++ b/src/store/api.js
@@ -5,10 +5,10 @@ import Axios from 'axios';
import store from '../store';
const api = Axios.create({
- withCredentials: true
+ withCredentials: true,
});
-api.interceptors.response.use(undefined, error => {
+api.interceptors.response.use(undefined, (error) => {
let response = error.response;
// TODO: Provide user with a notification and way to keep system active
@@ -51,20 +51,20 @@ export default {
},
spread(callback) {
return Axios.spread(callback);
- }
+ },
};
-export const getResponseCount = responses => {
+export const getResponseCount = (responses) => {
let successCount = 0;
let errorCount = 0;
- responses.forEach(response => {
+ responses.forEach((response) => {
if (response instanceof Error) errorCount++;
else successCount++;
});
return {
successCount,
- errorCount
+ errorCount,
};
};