feat: Add is_system column to notes and update task note handling for system notes
This commit is contained in:
@@ -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
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user