diff --git a/server.ts b/server.ts index 8f90e1e..254c6b1 100644 --- a/server.ts +++ b/server.ts @@ -1216,11 +1216,6 @@ app.post('/api/agent/process', async (req, res) => { complaintId: node.id, complaintTitle: node.title || d.displayTitle, rawText: d.rawText || '', - sentiment: d.sentiment || 'neutral', - sentimentScore: d.sentimentScore || 0, - entities: d.entities || { persons: [], places: [], organizations: [] }, - category: d.category || '', - urgency: d.urgency || 'medium', userName: d.userName || 'مستخدم', userId: d.userId || '', previousComments: d.comments || [], @@ -1252,11 +1247,6 @@ app.post('/api/agent/process-all-new', async (req, res) => { complaintId: comp.id, complaintTitle: comp.title || d.displayTitle, rawText: d.rawText || '', - sentiment: d.sentiment || 'neutral', - sentimentScore: d.sentimentScore || 0, - entities: d.entities || { persons: [], places: [], organizations: [] }, - category: d.category || '', - urgency: d.urgency || 'medium', userName: d.userName || 'مستخدم', userId: d.userId || '', previousComments: d.comments || [], diff --git a/tsconfig.json b/tsconfig.json index 73a4c11..1286394 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -6,9 +6,9 @@ "esModuleInterop": true, "strict": true, "outDir": "./dist", - "rootDir": "./src", + "rootDir": ".", "skipLibCheck": true, "resolveJsonModule": true }, - "include": ["src/**/*"] + "include": ["src/**/*", "server.ts"] }