Skip to content

πŸ“š The open-source, offline-first Notion, Obsidian & Confluence alternative. Advanced Markdown, multi-tenant teams, OIDC/SSO, and local S3 backups. Deploy in one command.

Remove old prints

Smaug67396fb1dd8829de
diff --git a/backend/router/router.go b/backend/router/router.go
index edc22df6..945de454 100644
--- a/backend/router/router.go
+++ b/backend/router/router.go
@@ -3,7 +3,6 @@ package router
import (
"alexandrie/app"
"alexandrie/router/routes"
- "fmt"
"os"
"github.com/gin-contrib/cors"
@@ -17,7 +16,6 @@ func InitRouter(app *app.App) *gin.Engine {
// Configurer les proxys et CORS
router.SetTrustedProxies([]string{"127.0.0.1", "localhost"})
- fmt.Println(os.Getenv("DOMAIN_CLIENT"))
router.Use(cors.New(cors.Config{
AllowOrigins: []string{os.Getenv("DOMAIN_CLIENT")},
AllowMethods: []string{"GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"},
diff --git a/backend/services/ressource.service.go b/backend/services/ressource.service.go
index d7382192..0e42a185 100644
--- a/backend/services/ressource.service.go
+++ b/backend/services/ressource.service.go
@@ -4,7 +4,6 @@ import (
"alexandrie/models"
"alexandrie/types"
"database/sql"
- "fmt"
)
type RessourceService interface {
@@ -70,7 +69,6 @@ func (s *Service) CreateRessource(ressource *models.Ressource) (*models.Ressourc
func (s *Service) UpdateRessource(ressource *models.Ressource) (*models.Ressource, error) {
_, err := s.db.Exec("UPDATE ressources SET filename = ?, file_size = ?, file_type = ?, original_path = ?, transformed_path = ?, parent_id = ?, author_id = ?, created_timestamp = ? WHERE id = ?", ressource.Filename, ressource.Filesize, ressource.Filetype, ressource.OriginalPath, ressource.TransformedPath, ressource.ParentId, ressource.AuthorId, ressource.CreatedTimestamp, ressource.Id)
if err != nil {
- fmt.Println(err)
return nil, err
}
return ressource, nil