fix: template removed events on projections (#2863)

This commit is contained in:
Livio Amstutz
2021-12-17 09:31:39 +01:00
committed by GitHub
parent cc04067da3
commit 28d7acdf99
4 changed files with 7 additions and 7 deletions

View File

@@ -4,6 +4,7 @@ import (
"context"
"github.com/caos/logging"
"github.com/caos/zitadel/internal/errors"
"github.com/caos/zitadel/internal/eventstore"
"github.com/caos/zitadel/internal/eventstore/handler"
@@ -144,6 +145,6 @@ func (p *CustomTextProjection) reduceTemplateRemoved(event eventstore.EventReade
[]handler.Condition{
handler.NewCond(CustomTextAggregateIDCol, customTextEvent.Aggregate().ID),
handler.NewCond(CustomTextTemplateCol, customTextEvent.Template),
handler.NewCond(CustomTextLanguageCol, customTextEvent.Language),
handler.NewCond(CustomTextLanguageCol, customTextEvent.Language.String()),
}), nil
}