Skip to content

Commit

Permalink
fixed event
Browse files Browse the repository at this point in the history
  • Loading branch information
St3plox committed Jul 23, 2023
1 parent a495507 commit 6f40188
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,6 @@ public void scheduleWithArgument(long argument, long delayInHours) {
} catch (InterruptedException e) {
throw new RuntimeException(e);
}
}, delayInHours, TimeUnit.MINUTES);
}, delayInHours, TimeUnit.HOURS);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ public void sendMessage(Authentication auth, String text,
}
}
messageRepository.save(message);
messageScheduler.scheduleWithArgument(message.getGroupId().getId(), 1);//
messageScheduler.scheduleWithArgument(message.getGroupId().getId(), 12);//
}
//cacheKey = "username.cache_secret"

Expand Down

0 comments on commit 6f40188

Please sign in to comment.