Improve agenda
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user