* fixing bugs due to eslint recommendation

feature: no-task
This commit is contained in:
2023-01-07 17:27:34 +01:00
parent 3b417c9ddd
commit 8463f87f9a
20 changed files with 1385 additions and 558 deletions

View File

@@ -7,7 +7,7 @@ import router from '../router'
//Auth: provide auth token in request
//OnError: redirect to page /error?message=somemessage&code=404
export async function getContracts() {
return HttpClient.get('contracts') //todo: provide here auth header
return HttpClient.get('contracts') //TODO: provide here auth header
.then(resp => {
return resp.data.contracts
})
@@ -20,7 +20,7 @@ export async function getContracts() {
//Auth: provide auth token in request
//OnError: redirect to page /error?message=somemessage&code=404
export async function getOpenContracts() {
return HttpClient.get('contracts/register') //todo: provide here auth header
return HttpClient.get('contracts/register') //TODO: provide here auth header
.then(resp => {
return resp.data.openContracts
})
@@ -37,7 +37,7 @@ export async function getOpenContracts() {
export async function getContractById(identifier) {
return HttpClient.get('/contract', { params: { id: identifier } })
.then(resp => {
//todo: send also auth token with request
//TODO: send also auth token with request
return resp.data
})
.catch(error => {