mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-05 09:12:04 +00:00
improve dev and db performance
This commit is contained in:
@@ -16,18 +16,13 @@ var _ eventstore.Event = (*ScheduledEvent)(nil)
|
||||
|
||||
type ScheduledEvent struct {
|
||||
*eventstore.BaseEvent `json:"-"`
|
||||
// TODO: `json:"-"`
|
||||
Timestamp time.Time `json:"timestamp"`
|
||||
// TODO: `json:"-"`
|
||||
InstanceIDs []string `json:"instanceIDs"`
|
||||
// TODO: `json:"-"`
|
||||
TriggeringEvent eventstore.Event `json:"triggeringEvent"`
|
||||
Timestamp time.Time `json:"-"`
|
||||
InstanceIDs []string `json:"-"`
|
||||
}
|
||||
|
||||
func NewScheduledEvent(
|
||||
ctx context.Context,
|
||||
timestamp time.Time,
|
||||
triggeringEvent eventstore.Event,
|
||||
instanceIDs ...string,
|
||||
) *ScheduledEvent {
|
||||
return &ScheduledEvent{
|
||||
@@ -36,8 +31,7 @@ func NewScheduledEvent(
|
||||
&NewAggregate().Aggregate,
|
||||
ScheduledEventType,
|
||||
),
|
||||
Timestamp: timestamp,
|
||||
InstanceIDs: instanceIDs,
|
||||
TriggeringEvent: triggeringEvent,
|
||||
Timestamp: timestamp,
|
||||
InstanceIDs: instanceIDs,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user