Skip to content

Commit

Permalink
add view report id fix Merge branch 'feature/formio' of https://githu…
Browse files Browse the repository at this point in the history
…b.com/bcgov/OCWA into feature/formio
  • Loading branch information
pripley123 committed Jan 16, 2020
2 parents 5749996 + 7e159be commit 9f6244c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions microservices/requestApi/notifications/gitops/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,15 @@ var gitops = function(db){

logger.info("[gitops] Request Success - ", data);

this.updateRequest(request, data.location, 200, '');
gitops.updateRequest(request, data.location, 200, '');

} else {

logger.error("Errors ", apiErr, apiRes.statusCode, apiRes.statusMessage, apiRes.body);
if (apiErr || apiRes.statusCode === 400) {
this.updateRequest(request, null, 400, (apiErr ? apiErr : apiRes.body['message']));
gitops.updateRequest(request, null, 400, (apiErr ? apiErr : apiRes.body['message']));
} else {
this.updateRequest(request, null, 400, 'Unexpected error - please try again later.');
gitops.updateRequest(request, null, 400, 'Unexpected error - please try again later.');
}
}
});
Expand Down

0 comments on commit 9f6244c

Please sign in to comment.