Browse Source

🎈 perf: 优化部分接口

Pchen. 2 months ago
parent
commit
2a0cf1e5cb
1 changed files with 2 additions and 2 deletions
  1. 2 2
      apis/AI/SummaryFile.js

+ 2 - 2
apis/AI/SummaryFile.js

@@ -61,8 +61,8 @@ class SummaryFile extends API {
                 })
 
             const time = new Date().getTime()
-            sql = 'INSERT INTO file_summary_tasks (repo_id, create_time, create_user, repo_hash, filepath) VALUES (?, ?, ?, ?, ?)'
-            let r = await db.query(sql, [id, time, uuid, hash, filePath])
+            sql = 'INSERT INTO file_summary_tasks (repo_id, create_time, create_user, repo_hash, filepath, source) VALUES (?, ?, ?, ?, ?, ?)'
+            let r = await db.query(sql, [id, time, uuid, hash, filePath, 'hand'])
 
             if (!r || r.affectedRows !== 1)
                 return res.json({