mirror of
https://github.com/versia-pub/versia-go.git
synced 2025-12-06 06:28:18 +01:00
fix(instance-metadata): add required CreatedAt field
This commit is contained in:
parent
d6bdcce4f4
commit
290dadcbe7
|
|
@ -72,6 +72,7 @@ func NewInstanceMetadata(dbData *ent.InstanceMetadata) (*InstanceMetadata, error
|
|||
|
||||
func (m InstanceMetadata) ToLysand() versia.InstanceMetadata {
|
||||
return versia.InstanceMetadata{
|
||||
CreatedAt: versiautils.TimeFromStd(m.CreatedAt),
|
||||
Extensions: m.Extensions,
|
||||
Name: m.Name,
|
||||
Description: m.Description,
|
||||
|
|
|
|||
|
|
@ -56,6 +56,7 @@ func (i *InstanceMetadataRepositoryImpl) ImportFromLysandByURI(ctx context.Conte
|
|||
defer s.End()
|
||||
ctx = s.Context()
|
||||
|
||||
// TODO: implement storing the instance metadata
|
||||
//i.federationService.
|
||||
|
||||
return nil, nil
|
||||
|
|
|
|||
|
|
@ -15,6 +15,9 @@ type InstanceMetadata struct {
|
|||
// Type is always "InstanceMetadata"
|
||||
Type string `json:"type"`
|
||||
|
||||
// CreatedAt is the initial date when the instance was first created
|
||||
CreatedAt versiautils.Time `json:"created_at"`
|
||||
|
||||
// Extensions is a map of active extensions
|
||||
Extensions Extensions `json:"extensions,omitempty"`
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue