From 91b2d673250d19049dbf85fe0ddc15c45021a6cd Mon Sep 17 00:00:00 2001 From: Livio Spring Date: Mon, 7 Oct 2024 16:50:17 +0200 Subject: [PATCH] fix: correctly compute user state (#8740) # Which Problems Are Solved A customer reported, that after a created user (in initial state) got (manually) locked and a new initial code would be created, the user could not be locked again. # How the Problems Are Solved Query for the initial code added event # Additional Changes None # Additional Context - reported by a customer --- internal/command/user_model.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/command/user_model.go b/internal/command/user_model.go index ad625756f6..0e68f0812c 100644 --- a/internal/command/user_model.go +++ b/internal/command/user_model.go @@ -97,6 +97,7 @@ func (wm *UserWriteModel) Query() *eventstore.SearchQueryBuilder { EventTypes( user.HumanAddedType, user.HumanRegisteredType, + user.HumanInitialCodeAddedType, user.HumanInitializedCheckSucceededType, user.UserIDPLinkAddedType, user.UserIDPLinkRemovedType,