fix: changed detected by scanner but no updated by render layer
This commit is contained in:
@ -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,
|
||||
|
||||
Reference in New Issue
Block a user