feat: Add is_system column to notes and update task note handling for system notes

This commit is contained in:
Chop
2025-06-19 22:12:07 +02:00
parent d40af1ff31
commit 3762f2e6f8
5 changed files with 93 additions and 36 deletions

View File

@@ -19,10 +19,11 @@ export function getNotesByTaskId(task_id) {
.all(task_id);
}
export function addNoteToTask(task_id, note) {
db.prepare(`INSERT INTO notes (task_id, note) VALUES (?, ?)`).run(
export function addNoteToTask(task_id, note, is_system = false) {
db.prepare(`INSERT INTO notes (task_id, note, is_system) VALUES (?, ?, ?)`).run(
task_id,
note
note,
is_system ? 1 : 0
);
}