diff --git a/pkg/shares/share.go b/pkg/shares/share.go index 6184c02..20a8a6e 100644 --- a/pkg/shares/share.go +++ b/pkg/shares/share.go @@ -47,7 +47,7 @@ func (et EntityType) IsValid() bool { type Share struct { ID string `json:"id"` Type EntityType `json:"entityType"` - Date *jsontypes.Time `json:"-"` // we handle this for the user + Date *jsontypes.Time `json:"entityDate,omitempty"` // we handle this for the user Owner users.UserID `json:"owner"` EntityID uuid.UUID `json:"entityID"` Expiration *jsontypes.Time `json:"expiration"`