diff options
Diffstat (limited to 'scraper/client')
| -rw-r--r-- | scraper/client/actions.js | 4 | ||||
| -rw-r--r-- | scraper/client/paper/paper.verify.js | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/scraper/client/actions.js b/scraper/client/actions.js index b5c477f6..47ca6ff5 100644 --- a/scraper/client/actions.js +++ b/scraper/client/actions.js @@ -41,8 +41,8 @@ export const getVerificationsDataset = dataset => dispatch => ( api(dispatch, get, 'verifications', '/api/verifications/' + dataset, {}) ) -export const getVerification = sha256 => dispatch => ( - api(dispatch, get, 'verify', '/api/verify/' + sha256, {}) +export const getVerification = (dataset, sha256) => dispatch => ( + api(dispatch, get, 'verify', '/api/verify/' + dataset + '/' + sha256, {}) ) export const postVerification = data => dispatch => ( diff --git a/scraper/client/paper/paper.verify.js b/scraper/client/paper/paper.verify.js index 25117ff1..8794feb4 100644 --- a/scraper/client/paper/paper.verify.js +++ b/scraper/client/paper/paper.verify.js @@ -36,7 +36,7 @@ class PaperVerify extends Component { const { sha256 } = this.props.match.params this.props.actions.getInstitutions() this.props.actions.getAddress(sha256) - this.props.actions.getVerification(sha256) + this.props.actions.getVerification(this.props.api.paperInfo.dataset.key, sha256) const citationState = this.getCitationState(sha256) // console.log('DID MOUNT') this.setState(citationState) @@ -54,7 +54,7 @@ class PaperVerify extends Component { if (oldSha256 && sha256 !== oldSha256) { // console.log('update verification') this.props.actions.getAddress(sha256) - this.props.actions.getVerification(sha256) + this.props.actions.getVerification(this.props.api.paperInfo.dataset.key, sha256) const citationState = this.getCitationState(sha256) newState = { ...initialState, |
