π The open-source, offline-first Notion, Obsidian & Confluence alternative. Advanced Markdown, multi-tenant teams, OIDC/SSO, and local S3 backups. Deploy in one command.
Vue dockergolangkanbanknowledge-baseknowledge-managementmarkdownnote-takingnotesnotes-appnotionnuxtnuxtjsoffline-firstoidcpwaselfhostedssovuevuejswiki
Fix creation date missing on uploads
Smaug67397111a5895dea
diff --git a/backend/services/ressource.service.go b/backend/services/ressource.service.goindex f6b48a74..d355a606 100644--- a/backend/services/ressource.service.go+++ b/backend/services/ressource.service.go@@ -14,6 +14,7 @@ import ("os""path/filepath""slices"+ "time""github.com/minio/minio-go/v7")@@ -101,17 +102,19 @@ func (s *ressourceService) UploadFile(filename string, fileSize int64, fileConteaccessibility := utils.IntPtr(1)node := &models.Node{- Id: id,- UserId: userId,- ParentId: nil,- Name: name,- Role: 4,- Accessibility: accessibility,- Access: 0,- Size: &fileSize,- Content: &filename,- ContentCompiled: &transformedPath,- Metadata: &metadata,+ Id: id,+ UserId: userId,+ ParentId: nil,+ Name: name,+ Role: 4,+ Accessibility: accessibility,+ Access: 0,+ Size: &fileSize,+ Content: &filename,+ ContentCompiled: &transformedPath,+ Metadata: &metadata,+ CreatedTimestamp: time.Now().UnixMilli(),+ UpdatedTimestamp: time.Now().UnixMilli(),}if err := s.nodeRepo.Create(node); err != nil {