fix: changed detected by scanner but no updated by render layer

This commit is contained in:
2026-02-03 11:34:24 +01:00
parent 01dcaf882a
commit 06ed2c3cbe
3 changed files with 35 additions and 1 deletions

View File

@ -113,6 +113,13 @@ func (s *SQLiteStorage) Create(n *note.Note) error {
_, err := s.db.Exec(`
INSERT INTO notes (id, path, title, content, updated_at, size, published)
VALUES (?, ?, ?, ?, ?, ?, ?)
ON CONFLICT(id) DO UPDATE SET
path = excluded.path,
title = excluded.title,
content = excluded.content,
updated_at = excluded.updated_at,
size = excluded.size,
published = excluded.published
`,
n.ID,
n.Path,