Skip to content

Commit

Permalink
Bug on last update
Browse files Browse the repository at this point in the history
  • Loading branch information
larousso committed Oct 14, 2024
1 parent 017397f commit 3d7780f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nio-server/app/models/ConsentFact.scala
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ case class PartialConsentFact(
userId = userId.getOrElse(lastConsentFact.userId),
doneBy = doneBy.getOrElse(lastConsentFact.doneBy),
version = version.getOrElse(organisation.version.num),
lastUpdate = lastUpdate.getOrElse(lastConsentFact.lastUpdate),
lastUpdate = lastUpdate.getOrElse(LocalDateTime.now(Clock.systemUTC)),
lastUpdateSystem = LocalDateTime.now(Clock.systemUTC),
groups = groups.map(g => PartialConsentGroup.merge(g, lastConsentFact.groups, organisation.groups)).getOrElse(lastConsentFact.groups),
offers = offers.map(o => PartialConsentOffer.merge(o, lastConsentFact.offers)).getOrElse(lastConsentFact.offers),
Expand Down

0 comments on commit 3d7780f

Please sign in to comment.