Skip to content
Permalink
Browse files

fixed a bug identified by studying the model of a decision tree

  • Loading branch information
gengstrand committed Oct 14, 2018
1 parent eaa0916 commit 4149b936e4618bf4c39fdd5387d96af493381b51
Showing with 3 additions and 1 deletion.
  1. +3 −1 server/feed2/src/main/scala/info/glennengstrand/news/Participant.scala
@@ -69,7 +69,9 @@ class Participant(id: Int, name: String) extends ParticipantState(id, name) with
)
val result = write(Participant.bindings, state, criteria)
val newId = result.getOrElse("id", 0l).asInstanceOf[Int]
invalidate(Participant.bindings, criteria)
if (id != 0) {
invalidate(Participant.bindings, criteria)
}
Participant.create(newId, name)
}

0 comments on commit 4149b93

Please sign in to comment.
You can’t perform that action at this time.