Skip to content

Commit

Permalink
🐛 Sti må sendes med i kommandokjede_suspendert
Browse files Browse the repository at this point in the history
  • Loading branch information
chsko committed Nov 1, 2024
1 parent 3933bdb commit e2617bc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,14 @@ sealed class KommandokjedeEndretEvent {

class Suspendert(
private val kommandonavn: String,
private val sti: List<Int>,
override val commandContextId: UUID,
override val hendelseId: UUID,
) : KommandokjedeEndretEvent() {
override val eventName: String = "kommandokjede_suspendert"

override fun ekstraDetaljer(): Map<String, Any> {
return mapOf("command" to kommandonavn)
return mapOf("command" to kommandonavn, "sti" to sti)
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ internal class CommandContext(
}
} else {
commandContextDao.suspendert(hendelseId, id, newHash, sti).also {
kommandokjedetilstandEndret(KommandokjedeEndretEvent.Suspendert(command.name, id, hendelseId))
kommandokjedetilstandEndret(KommandokjedeEndretEvent.Suspendert(command.name, sti, id, hendelseId))
}
}
}
Expand Down

0 comments on commit e2617bc

Please sign in to comment.