mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-12 00:27: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:
@@ -179,13 +179,8 @@ func (p *lockoutPolicyProjection) reduceOwnerRemoved(event eventstore.Event) (*h
|
||||
return nil, errors.ThrowInvalidArgumentf(nil, "PROJE-IoW0x", "reduce.wrong.event.type %s", org.OrgRemovedEventType)
|
||||
}
|
||||
|
||||
return crdb.NewUpdateStatement(
|
||||
return crdb.NewDeleteStatement(
|
||||
e,
|
||||
[]handler.Column{
|
||||
handler.NewCol(LockoutPolicyChangeDateCol, e.CreationDate()),
|
||||
handler.NewCol(LockoutPolicySequenceCol, e.Sequence()),
|
||||
handler.NewCol(LockoutPolicyOwnerRemovedCol, true),
|
||||
},
|
||||
[]handler.Condition{
|
||||
handler.NewCond(LockoutPolicyInstanceIDCol, e.Aggregate().InstanceID),
|
||||
handler.NewCond(LockoutPolicyResourceOwnerCol, e.Aggregate().ID),
|
||||
|
Reference in New Issue
Block a user