Skip to content

Commit

Permalink
Fix #853: ActivationFlagsServiceBehavior does not set timestampLastCh…
Browse files Browse the repository at this point in the history
…ange
  • Loading branch information
banterCZ committed Feb 17, 2023
1 parent 22fe848 commit ddedc3d
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@

import java.util.ArrayList;
import java.util.Collections;
import java.util.Date;
import java.util.List;
import java.util.stream.Collectors;

Expand Down Expand Up @@ -156,6 +157,7 @@ public UpdateActivationFlagsResponse updateActivationFlags(String activationId,
Collections.sort(activationFlags);
activation.getFlags().clear();
activation.getFlags().addAll(activationFlags);
activation.setTimestampLastChange(new Date());
activationRepository.save(activation);

final UpdateActivationFlagsResponse response = new UpdateActivationFlagsResponse();
Expand Down Expand Up @@ -191,6 +193,7 @@ public RemoveActivationFlagsResponse removeActivationFlags(String activationId,
.build();
audit.log(AuditLevel.INFO, "Removing activation flags: {} from activation {}", auditDetail, activationFlags, activationId);
activation.getFlags().removeAll(activationFlags);
activation.setTimestampLastChange(new Date());
activationRepository.save(activation);

final RemoveActivationFlagsResponse response = new RemoveActivationFlagsResponse();
Expand Down

0 comments on commit ddedc3d

Please sign in to comment.