Skip to content

Commit

Permalink
Fix gitops error with updateRequest not a function
Browse files Browse the repository at this point in the history
  • Loading branch information
ikethecoder committed Jan 16, 2020
1 parent b4f535c commit 7e159be
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 7e159be

Please sign in to comment.