update sync

This commit is contained in:
2026-06-09 19:07:18 -04:00
parent c7dafae806
commit 6c30fd8b63
5 changed files with 92 additions and 7 deletions

View File

@@ -1,6 +1,7 @@
package httpserver
import (
"database/sql"
"encoding/json"
"errors"
"net/http"
@@ -172,6 +173,9 @@ func (s *Server) syncAccessFilters(r *http.Request) (sync.FileAccessFunc, sync.P
}
record, err := s.repository.GetDocumentByPath(r.Context(), file.Path)
if err != nil {
if errors.Is(err, sql.ErrNoRows) {
return s.canReadNewDocument(r, file.Path)
}
accessErr = err
return false
}