π 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
Set new ressources order
Smaug6739761a366444c7
diff --git a/backend/services/ressource.service.go b/backend/services/ressource.service.goindex 0e42a185..cc160ef6 100644--- a/backend/services/ressource.service.go+++ b/backend/services/ressource.service.go@@ -21,7 +21,7 @@ func NewRessourceService(db *sql.DB) RessourceService {func (s *Service) GetAllUploadsByUserId(userId types.Snowflake) ([]*models.Ressource, error) {var ressources = make([]*models.Ressource, 0)- rows, err := s.db.Query("SELECT * from ressources WHERE author_id = ?", userId)+ rows, err := s.db.Query("SELECT * from ressources WHERE author_id = ? ORDER BY created_timestamp DESC", userId)if err != nil {return nil, err}