Skip to content

Commit 2bcc845

Browse files
committed
SEBSERV-594
1 parent 029b30f commit 2bcc845

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/ch/ethz/seb/sps/server/servicelayer/impl/AutomatedDeletionServiceImpl.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ private void update() {
7272
DateTime now = Utils.toDateTimeUTC(Utils.getMillisecondsNow());
7373

7474
// processed only in the morning hours (UTC)
75-
if (now.hourOfDay().get() < APPLY_DELETION_BEFORE_HOUR_OF_DAY) {
75+
int hd = now.hourOfDay().get();
76+
if (APPLY_DELETION_AFTER_HOUR_OF_DAY < hd && hd < APPLY_DELETION_BEFORE_HOUR_OF_DAY) {
7677
processDeletion();
7778
}
7879
}

0 commit comments

Comments
 (0)