diff --git a/server/db.ts b/server/db.ts index e511b23..f14ee92 100644 --- a/server/db.ts +++ b/server/db.ts @@ -1376,7 +1376,7 @@ export function updateMarks(slug: string, marks: Record): boole const now = new Date().toISOString(); const result = getDb().prepare(` UPDATE documents - SET marks = ?, updated_at = ? + SET marks = ?, updated_at = ?, revision = revision + 1 WHERE slug = ? AND share_state IN ('ACTIVE', 'PAUSED') `).run(JSON.stringify(marks), now, slug); if (result.changes > 0) {