Skip to content

Commit

Permalink
Merge pull request #793 from navikt/bug/hard_delete_cascade_replay
Browse files Browse the repository at this point in the history
støtte cascade delete fra sak i HardDeletedRepository
  • Loading branch information
kenglxn authored Nov 26, 2024
2 parents 9bf4ea0 + 79d3bef commit 09cdf84
Show file tree
Hide file tree
Showing 16 changed files with 654 additions and 95 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -689,6 +689,9 @@ class BrukerRepositoryImpl(
}.getOrNull(0)

override suspend fun oppdaterModellEtterHendelse(hendelse: Hendelse, metadata: HendelseMetadata) {
if (hendelse is HendelseModel.AggregatOpprettet) {
registrerKoblingForCascadeDelete(hendelse)
}
if (erHardDeleted(hendelse.aggregateId)) {
log.info("skipping harddeleted event {}", hendelse)
return
Expand Down
Loading

0 comments on commit 09cdf84

Please sign in to comment.