feat: Add schema check and logging tests for project tasks and notes
This commit is contained in:
@@ -20,11 +20,9 @@ export function getNotesByTaskId(task_id) {
|
||||
}
|
||||
|
||||
export function addNoteToTask(task_id, note, is_system = false) {
|
||||
db.prepare(`INSERT INTO notes (task_id, note, is_system) VALUES (?, ?, ?)`).run(
|
||||
task_id,
|
||||
note,
|
||||
is_system ? 1 : 0
|
||||
);
|
||||
db.prepare(
|
||||
`INSERT INTO notes (task_id, note, is_system) VALUES (?, ?, ?)`
|
||||
).run(task_id, note, is_system ? 1 : 0);
|
||||
}
|
||||
|
||||
export function deleteNote(note_id) {
|
||||
|
||||
Reference in New Issue
Block a user