Skip to content
This repository has been archived by the owner on Nov 5, 2024. It is now read-only.

Commit

Permalink
f Hvis dev, publiser meldinger til aiven-topics parallelt
Browse files Browse the repository at this point in the history
  • Loading branch information
Jørgen Tu Sveli committed Aug 31, 2021
1 parent cdb9c55 commit 8d6b3d1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ ArbeidssokerRegistrertKafkaProducer arbeidssokerRegistrertKafkaProducerAiven(@Qu
ArbeidssokerProfilertKafkaProducer arbeidssokerProfilertKafkaProducerAiven(@Qualifier("producerAiven") KafkaProducer kafkaProducerAiven) {
return new ArbeidssokerProfilertKafkaProducer(
kafkaProducerAiven,
"paw.paw-test-topic");
"paw.arbeidssoker-profilert-v1");
}

@Bean("producerOnprem")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ class PubliseringAvEventsService(
ordinaerBrukerRegistrering.opprettetDato
).also {
arbeidssokerRegistrertProducer.publiserArbeidssokerRegistrert(it)
//arbeidssokerRegistrertProducerAiven.publiserArbeidssokerRegistrert(it)
if (System.getenv("APP_ENVIRONMENT_NAME") == "dev") {
arbeidssokerRegistrertProducerAiven.publiserArbeidssokerRegistrert(it)
}
}

arbeidssokerProfilertProducer.publiserProfilering(
Expand Down

0 comments on commit 8d6b3d1

Please sign in to comment.