Skip to content

Commit

Permalink
fix: deserializing EventSourced entity events (#752)
Browse files Browse the repository at this point in the history
* Add event proto's

* fix: deserializing EventSourced entity events
  • Loading branch information
raboof authored Dec 14, 2021
1 parent b41ec26 commit 1a1045d
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 @@ -115,7 +115,7 @@ object EventSourcedEntitySourceGenerator {
val relevantTypes = {
service.commands.flatMap { cmd =>
cmd.inputType :: cmd.outputType :: Nil
}.toSeq :+ entity.state.fqn
}.toSeq ++ entity.events.map(_.fqn) :+ entity.state.fqn
}

implicit val imports: Imports = generateImports(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,8 @@ object EventSourcedEntitySourceGenerator {
val className = entity.providerName

val descriptors =
(Seq(entity.state.fqn) ++ (service.commands.map(_.inputType) ++ service.commands.map(_.outputType)))
(Seq(entity.state.fqn) ++ (service.commands.map(_.inputType) ++ service.commands.map(
_.outputType)) ++ entity.events.map(_.fqn))
.map(_.descriptorImport)

generate(
Expand Down

0 comments on commit 1a1045d

Please sign in to comment.