add logic to store event modification and deleted event
This commit is contained in:
@@ -27,6 +27,7 @@ func (e Event) ToStorageType() storage.Event {
|
||||
MaxSubscribers: e.MaxSubscribers,
|
||||
Subscriptions: []storage.Subscription{},
|
||||
Data: map[string]any{},
|
||||
Deleted: e.Deleted,
|
||||
}
|
||||
|
||||
for _, v := range e.Subscriptions {
|
||||
@@ -94,6 +95,7 @@ func EventFromStorageType(event *storage.Event) (*Event, error) {
|
||||
MaxSubscribers: event.MaxSubscribers,
|
||||
Subscriptions: subscriptions,
|
||||
Data: data,
|
||||
Deleted: event.Deleted,
|
||||
}, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user