feat: Add is_system column to notes and update task note handling for system notes
This commit is contained in:
@@ -28,7 +28,7 @@ export async function GET(req) {
|
||||
// POST: Add a note to a task
|
||||
export async function POST(req) {
|
||||
try {
|
||||
const { task_id, note } = await req.json();
|
||||
const { task_id, note, is_system } = await req.json();
|
||||
|
||||
if (!task_id || !note) {
|
||||
return NextResponse.json(
|
||||
@@ -37,7 +37,7 @@ export async function POST(req) {
|
||||
);
|
||||
}
|
||||
|
||||
addNoteToTask(task_id, note);
|
||||
addNoteToTask(task_id, note, is_system);
|
||||
return NextResponse.json({ success: true });
|
||||
} catch (error) {
|
||||
console.error("Error adding task note:", error);
|
||||
|
||||
Reference in New Issue
Block a user