diff --git a/backend/src/admin/approvals.controller.ts b/backend/src/admin/approvals.controller.ts index d113b78d..7bb2822f 100644 --- a/backend/src/admin/approvals.controller.ts +++ b/backend/src/admin/approvals.controller.ts @@ -185,9 +185,7 @@ export class ApprovalsController { where: { id: existingTask.id }, data: { status: "TODO", - description: dto.ceoNotes ? (existingTask.description || "") + " - -[یادداشت مدیرعامل]: " + dto.ceoNotes : existingTask.description, + description: dto.ceoNotes ? (existingTask.description || "") + "\n\n[یادداشت مدیرعامل]: " + dto.ceoNotes : existingTask.description, }, }); } else { @@ -196,9 +194,7 @@ export class ApprovalsController { code: "TSK-" + Date.now().toString().slice(-6), department: item.department, title: item.title, - description: dto.ceoNotes ? (item.title + " - -[یادداشت مدیرعامل]: " + dto.ceoNotes) : item.title, + description: dto.ceoNotes ? (item.title + "\n\n[یادداشت مدیرعامل]: " + dto.ceoNotes) : item.title, status: "TODO", priority: "HIGH", assignee: "AI_AGENT", diff --git a/backend/src/admin/department-tasks.controller.ts b/backend/src/admin/department-tasks.controller.ts index 2566dccc..a542732c 100644 --- a/backend/src/admin/department-tasks.controller.ts +++ b/backend/src/admin/department-tasks.controller.ts @@ -176,9 +176,7 @@ export class DepartmentTasksController { if (body.status === "DONE") updateData.completedAt = new Date(); // اگر تست QA ناموفق بود و به TODO برگشت، لاگ اصلاح ضمیمه می‌شود if (body.status === "TODO" && body.logNote) { - updateData.description = (existing.description || "") + " - -[اصلاحات و تضمین کیفیت QA]: " + body.logNote; + updateData.description = (existing.description || "") + "\n\n[اصلاحات و تضمین کیفیت QA]: " + body.logNote; } const updated = await (this.prisma as any).departmentTask.update({