diff --git a/src/main/java/com/lpvs/service/LPVSQueueService.java b/src/main/java/com/lpvs/service/LPVSQueueService.java index 3664df78..a91f8e91 100644 --- a/src/main/java/com/lpvs/service/LPVSQueueService.java +++ b/src/main/java/com/lpvs/service/LPVSQueueService.java @@ -244,9 +244,9 @@ public void processWebHook(LPVSQueue webhookConfig) { pullRequest.setStatus(LPVSPullRequestStatus.INTERNAL_ERROR.toString()); pullRequest = lpvsPullRequestRepository.saveAndFlush(pullRequest); log.error("Can't authorize commentResults() " + e.getMessage()); - int currentAttempts = webhookConfig.getAttempts(); + int currentAttempts = webhookConfig.getAttempts() + 1; if (currentAttempts < maxAttempts) { - webhookConfig.setAttempts(currentAttempts + 1); + webhookConfig.setAttempts(currentAttempts); try { addFirst(webhookConfig); } catch (InterruptedException e1) {