mirror of
https://github.com/Sheldan/abstracto.git
synced 2026-01-27 23:09:05 +00:00
fixed future handling in message cache, so methods return futures instead of requiring them as parameters
and adapted the code using this fixed config loading still relying on double, where the values were changed to long
This commit is contained in:
@@ -111,8 +111,8 @@ public class WarnServiceBean implements WarnService {
|
||||
@Override
|
||||
@Transactional
|
||||
public void decayWarningsForServer(AServer server) {
|
||||
Double days = configService.getDoubleValue("decayDays", server.getId());
|
||||
Instant cutOffDay = Instant.now().minus(days.longValue(), ChronoUnit.DAYS);
|
||||
Long days = configService.getLongValue("decayDays", server.getId());
|
||||
Instant cutOffDay = Instant.now().minus(days, ChronoUnit.DAYS);
|
||||
List<Warning> warningsToDecay = warnManagementService.getActiveWarningsInServerOlderThan(server, cutOffDay);
|
||||
decayWarnings(warningsToDecay);
|
||||
logDecayedWarnings(server, warningsToDecay);
|
||||
|
||||
Reference in New Issue
Block a user