Skip to content

Commit

Permalink
- replaced mocked submitContinuationReviewResult() with real Axios call
Browse files Browse the repository at this point in the history
  • Loading branch information
Severin Beauvais committed Jul 15, 2024
1 parent 3dd0313 commit 0985bd8
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions auth-web/src/services/business.services.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,13 +149,9 @@ export default class BusinessService {
if (!status) throw new Error('Invalid parameters')

const data = { status, comment }
const url = `${ConfigHelper.getLegalAPIV2Url()}/admin/reviews/${reviewId}`

// *** TODO: once the API is ready, replace this mocked data with the Axios call below
await new Promise(resolve => setTimeout(resolve, 1000))
return new Promise(resolve => resolve(data))

// const url = `${ConfigHelper.getLegalAPIV2Url()}/admin/reviews/${reviewId}`
// return axios.post(url, data)
return axios.post(url, data)
}

/**
Expand Down

0 comments on commit 0985bd8

Please sign in to comment.