We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 029b30f commit 2bcc845Copy full SHA for 2bcc845
src/main/java/ch/ethz/seb/sps/server/servicelayer/impl/AutomatedDeletionServiceImpl.java
@@ -72,7 +72,8 @@ private void update() {
72
DateTime now = Utils.toDateTimeUTC(Utils.getMillisecondsNow());
73
74
// processed only in the morning hours (UTC)
75
- if (now.hourOfDay().get() < APPLY_DELETION_BEFORE_HOUR_OF_DAY) {
+ int hd = now.hourOfDay().get();
76
+ if (APPLY_DELETION_AFTER_HOUR_OF_DAY < hd && hd < APPLY_DELETION_BEFORE_HOUR_OF_DAY) {
77
processDeletion();
78
}
79
0 commit comments