Skip to content

Commit

Permalink
Merge pull request #6890 from ORCID/8831-tech-send-spam-notification-…
Browse files Browse the repository at this point in the history
…to-the-spam-channel-collab-spam-reports

8831 tech send spam notification to the spam channel collab spam reports
  • Loading branch information
amontenegro authored Sep 7, 2023
2 parents 7b7a045 + a49fad8 commit d6de9d6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ private void autolockRecords(List<String> toLock) {
+ " acccounts locked in DB: " + accountsLocked);
slackManager.sendAlert(
"Spam locking for the batch processed on the day ended. LastOrcid processed is: " + lastOrcidProcessed + " acccounts locked in DB: " + accountsLocked,
slackChannel, slackUser);
slackChannel, slackUser, webhookUrl);
}

public void scheduledProcess() throws InterruptedException, IOException {
Expand All @@ -181,7 +181,7 @@ public void process(boolean fromS3) throws InterruptedException, IOException {
LOG.info("Locked {} profiles, {} remaining to lock", new Object[] { toLock.size(), allIDs.size() });
LOG.info("Profiles autolocked");
Thread.sleep(ONE_DAY);
if (allIDs.size() - toLock.size() <= 0) {
if (allIDs.size() - toLock.size() < 0) {
break;
} else {
toLock = getNextIdSubset(allIDs);
Expand Down

0 comments on commit d6de9d6

Please sign in to comment.