mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-13 03:24:26 +00:00
fix: setup (#1555)
This commit is contained in:
parent
970da0730c
commit
ba22f43e87
@ -276,8 +276,8 @@ func (rm *UniqueConstraintReadModel) removeUniqueConstraint(aggregateID, objectI
|
||||
}
|
||||
|
||||
func (rm *UniqueConstraintReadModel) listRemoveUniqueConstraint(aggregateID, constraintType string) {
|
||||
for i, uniqueConstraint := range rm.UniqueConstraints {
|
||||
if uniqueConstraint.AggregateID == aggregateID && uniqueConstraint.UniqueType == constraintType {
|
||||
for i := len(rm.UniqueConstraints) - 1; i >= 0; i-- {
|
||||
if rm.UniqueConstraints[i].AggregateID == aggregateID && rm.UniqueConstraints[i].UniqueType == constraintType {
|
||||
copy(rm.UniqueConstraints[i:], rm.UniqueConstraints[i+1:])
|
||||
rm.UniqueConstraints[len(rm.UniqueConstraints)-1] = nil
|
||||
rm.UniqueConstraints = rm.UniqueConstraints[:len(rm.UniqueConstraints)-1]
|
||||
|
Loading…
Reference in New Issue
Block a user