diff --git a/system/service/attachment.go b/system/service/attachment.go index 84625c515..93fef93be 100644 --- a/system/service/attachment.go +++ b/system/service/attachment.go @@ -157,7 +157,6 @@ func (svc attachment) CreateSettingsAttachment(name string, size int64, fh io.Re } att = &types.Attachment{ - ID: nextID(), OwnerID: currentUserID, Name: strings.TrimSpace(name), Kind: types.AttachmentKindSettings, @@ -184,6 +183,9 @@ func (svc attachment) create(name string, size int64, fh io.ReadSeeker, att *typ aaProps = &attachmentActionProps{} ) + att.ID = nextID() + att.CreatedAt = *now() + if svc.files == nil { return errors.New("can not create attachment: store handler not set") } diff --git a/system/service/current_settings.go b/system/service/current_settings.go deleted file mode 100644 index 6d43c3366..000000000 --- a/system/service/current_settings.go +++ /dev/null @@ -1 +0,0 @@ -package service diff --git a/system/types/app_settings.go b/system/types/app_settings.go index f6ae74fbc..b13f59740 100644 --- a/system/types/app_settings.go +++ b/system/types/app_settings.go @@ -121,7 +121,7 @@ type ( Sticky bool `json:"sticky"` } `json:"tabs"` } `kv:"panels,final" json:"panels"` - } `kv:"one" json:"One"` + } `kv:"one" json:"one"` // Admin struct {} `kv:"admin"` } `kv:"ui" json:"ui"`