mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 21:07:31 +00:00
feat: delete organizations (#6083)
* feat: delete organizations * feat: tests and delete all that depends on org * fix: grpc delete description * fix: get back reduce OrgRemovedEvent * fix: add @muhlemmer review suggestions * fix: new e2e for add/delete org
This commit is contained in:
@@ -188,13 +188,8 @@ func (p *customTextProjection) reduceOwnerRemoved(event eventstore.Event) (*hand
|
||||
return nil, errors.ThrowInvalidArgumentf(nil, "PROJE-V2T3z", "reduce.wrong.event.type %s", org.OrgRemovedEventType)
|
||||
}
|
||||
|
||||
return crdb.NewUpdateStatement(
|
||||
return crdb.NewDeleteStatement(
|
||||
e,
|
||||
[]handler.Column{
|
||||
handler.NewCol(CustomTextChangeDateCol, e.CreationDate()),
|
||||
handler.NewCol(CustomTextSequenceCol, e.Sequence()),
|
||||
handler.NewCol(CustomTextOwnerRemovedCol, true),
|
||||
},
|
||||
[]handler.Condition{
|
||||
handler.NewCond(CustomTextInstanceIDCol, e.Aggregate().InstanceID),
|
||||
handler.NewCond(CustomTextAggregateIDCol, e.Aggregate().ID),
|
||||
|
Reference in New Issue
Block a user