mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-07 06:42:15 +00:00
fix: reset custom texts to default (#6833)
* Revert "fix: add texts after template reset (#6237)"
This reverts commit d937ee3dda.
* fix: reset of custom text template
* add custom bulk limits from issue
https://github.com/zitadel/zitadel/issues/6766#issuecomment-1778721782
This commit is contained in:
@@ -577,10 +577,15 @@ func (wm *CustomLoginTextReadModel) Reduce() error {
|
||||
continue
|
||||
}
|
||||
case *policy.CustomTextTemplateRemovedEvent:
|
||||
if e.Template != domain.LoginCustomText {
|
||||
if e.Template != domain.LoginCustomText || wm.Language != e.Language {
|
||||
continue
|
||||
}
|
||||
wm.State = domain.PolicyStateRemoved
|
||||
// Reset all values
|
||||
*wm = CustomLoginTextReadModel{
|
||||
WriteModel: wm.WriteModel,
|
||||
Language: wm.Language,
|
||||
State: domain.PolicyStateRemoved,
|
||||
}
|
||||
}
|
||||
}
|
||||
return wm.WriteModel.Reduce()
|
||||
|
||||
Reference in New Issue
Block a user