Merge branch 'modifyAnEvent' into dev

This commit is contained in:
soukainna
2023-02-22 14:17:53 +01:00
11 changed files with 743 additions and 23 deletions

View File

@@ -28,6 +28,7 @@ func (e Event) ToStorageType() storage.Event {
Subscriptions: []storage.Subscription{},
DeletedSubscription: []storage.Subscription{},
Data: map[string]any{},
Deleted: e.Deleted,
}
for _, v := range e.Subscriptions {
@@ -106,6 +107,7 @@ func EventFromStorageType(event *storage.Event) (*Event, error) {
Subscriptions: subscriptions,
DeletedSubscription: deletedsubscription,
Data: data,
Deleted: event.Deleted,
}, nil
}