Improve agenda

This commit is contained in:
2022-12-05 17:21:12 +01:00
parent ba8ae85d66
commit 5feb1b720e
8 changed files with 227 additions and 144 deletions

View File

@@ -51,6 +51,8 @@ func (s Subscription) ToStorageType() storage.Subscription {
subscription := storage.Subscription{
Subscriber: s.Subscriber,
Tags: s.Tags,
Data: s.Data.AsMap(),
CreatedAt: s.CreatedAt.AsTime(),
}
return subscription
@@ -112,6 +114,7 @@ func SubscriptionFromStorageType(s storage.Subscription) (*Subscription, error)
Subscriber: s.Subscriber,
Tags: s.Tags,
Data: data,
CreatedAt: timestamppb.New(s.CreatedAt),
}
return &subscription, nil