Skip to content

Commit

Permalink
template
Browse files Browse the repository at this point in the history
  • Loading branch information
larousso committed Oct 17, 2024
1 parent 3163c54 commit 7f5e313
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ services:
- nio_zookeeper
environment:
KAFKA_BROKER_ID: 1
KAFKA_ZOOKEEPER_CONNECT: zookeeper:32181
KAFKA_ZOOKEEPER_CONNECT: nio_zookeeper:32181
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://localhost:29092
KAFKA_AUTO_CREATE_TOPICS_ENABLE: "true"
KAFKA_DELETE_TOPIC_ENABLE: "true"
Expand Down
2 changes: 1 addition & 1 deletion nio-server/app/controllers/ConsentController.scala
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ class ConsentController(
key = pg.key,
label = pg.label,
consents = pg.permissions.map { p =>
Consent(key = p.key, label = p.label, checked = p.checkDefault(), expiredAt = p.getValidityPeriod)
Consent(key = p.key, label = p.label, checked = p.checkDefault(), expiredAt = None)
}
)

Expand Down
3 changes: 2 additions & 1 deletion nio-server/app/service/ConsentManagerService.scala
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,8 @@ class ConsentManagerService(
}
.getOrElse(group)

val consentFactFiltered = consentFact.filterExpiredConsent(true)
val consentFactFiltered = consentFact.filterExpiredConsent(false)

val groupsUpdated: Seq[ConsentGroup] =
template.groups.map { group =>
val maybeGroup = consentFactFiltered.groups
Expand Down

0 comments on commit 7f5e313

Please sign in to comment.