mirror of
https://github.com/andwati/zitadel.git
synced 2026-12-05 10:28:52 +00:00
fix: Previous sequence (#1086)
* feat: remove previous sequence check * feat: object creation date * feat: simplify member write model * feat: simplify write model * feat: simplify write model
This commit is contained in:
@@ -26,10 +26,6 @@ type LockedEvent struct {
|
||||
eventstore.BaseEvent `json:"-"`
|
||||
}
|
||||
|
||||
func (e *LockedEvent) CheckPrevious() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
func (e *LockedEvent) Data() interface{} {
|
||||
return nil
|
||||
}
|
||||
@@ -53,10 +49,6 @@ type UnlockedEvent struct {
|
||||
eventstore.BaseEvent `json:"-"`
|
||||
}
|
||||
|
||||
func (e *UnlockedEvent) CheckPrevious() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
func (e *UnlockedEvent) Data() interface{} {
|
||||
return nil
|
||||
}
|
||||
@@ -80,10 +72,6 @@ type DeactivatedEvent struct {
|
||||
eventstore.BaseEvent `json:"-"`
|
||||
}
|
||||
|
||||
func (e *DeactivatedEvent) CheckPrevious() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
func (e *DeactivatedEvent) Data() interface{} {
|
||||
return nil
|
||||
}
|
||||
@@ -107,10 +95,6 @@ type ReactivatedEvent struct {
|
||||
eventstore.BaseEvent `json:"-"`
|
||||
}
|
||||
|
||||
func (e *ReactivatedEvent) CheckPrevious() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
func (e *ReactivatedEvent) Data() interface{} {
|
||||
return nil
|
||||
}
|
||||
@@ -134,10 +118,6 @@ type RemovedEvent struct {
|
||||
eventstore.BaseEvent `json:"-"`
|
||||
}
|
||||
|
||||
func (e *RemovedEvent) CheckPrevious() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
func (e *RemovedEvent) Data() interface{} {
|
||||
return nil
|
||||
}
|
||||
@@ -169,10 +149,6 @@ type TokenAddedEvent struct {
|
||||
PreferredLanguage string `json:"preferredLanguage"`
|
||||
}
|
||||
|
||||
func (e *TokenAddedEvent) CheckPrevious() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
func (e *TokenAddedEvent) Data() interface{} {
|
||||
return e
|
||||
}
|
||||
@@ -219,10 +195,6 @@ type DomainClaimedEvent struct {
|
||||
UserName string `json:"userName"`
|
||||
}
|
||||
|
||||
func (e *DomainClaimedEvent) CheckPrevious() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
func (e *DomainClaimedEvent) Data() interface{} {
|
||||
return e
|
||||
}
|
||||
@@ -256,10 +228,6 @@ type DomainClaimedSentEvent struct {
|
||||
eventstore.BaseEvent `json:"-"`
|
||||
}
|
||||
|
||||
func (e *DomainClaimedSentEvent) CheckPrevious() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
func (e *DomainClaimedSentEvent) Data() interface{} {
|
||||
return nil
|
||||
}
|
||||
@@ -287,10 +255,6 @@ type UsernameChangedEvent struct {
|
||||
UserName string `json:"userName"`
|
||||
}
|
||||
|
||||
func (e *UsernameChangedEvent) CheckPrevious() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
func (e *UsernameChangedEvent) Data() interface{} {
|
||||
return e
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user