add processed fields

This commit is contained in:
kandrusyak
2022-08-24 13:24:10 +03:00
parent 446276fadf
commit e4f691ab78
5 changed files with 291 additions and 188 deletions

View File

@@ -8,8 +8,9 @@ function prepareUrl(url) {
function handleRequest(method, url, headers, attempts, token, body) {
return new Promise((resolve, reject) => {
store.loading = true;
(function internalRequest() {
if(store)
store.loading = true;
return request(method, url, headers, token, body)
.then(resolve)
.catch(err => --attempts > 0 ? internalRequest() : reject(err))

View File

@@ -2,5 +2,6 @@ export const statusMap={
completed:'Completed',
incorrect:'Incorrect',
stored: 'Stored',
blockchained: 'Blockchained'
blockchained: 'Blockchained',
processed: 'Processed'
}