add logic to store event modification and deleted event

This commit is contained in:
soukainna
2023-02-01 09:58:37 +01:00
parent 5feb1b720e
commit 301f636072
11 changed files with 364 additions and 122 deletions

View File

@@ -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
}