Include date

This commit is contained in:
Daniel Ponte 2025-02-11 08:25:09 -05:00
parent d16ad6a4ad
commit b6ad5e5f8c

View file

@ -47,7 +47,7 @@ func (et EntityType) IsValid() bool {
type Share struct { type Share struct {
ID string `json:"id"` ID string `json:"id"`
Type EntityType `json:"entityType"` 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"` Owner users.UserID `json:"owner"`
EntityID uuid.UUID `json:"entityID"` EntityID uuid.UUID `json:"entityID"`
Expiration *jsontypes.Time `json:"expiration"` Expiration *jsontypes.Time `json:"expiration"`