|
@@ -48,8 +48,8 @@ class ScanRepo extends API {
|
|
|
const hash = await git.revparse(['HEAD'])
|
|
|
const time = new Date().getTime()
|
|
|
|
|
|
- sql = 'INSERT INTO scan_tasks (repo_id, create_time, create_user, repo_hash) VALUES (?, ?, ?, ?)'
|
|
|
- let r = await db.query(sql, [id, time, uuid, hash])
|
|
|
+ sql = 'INSERT INTO scan_tasks (repo_id, create_time, create_user, repo_hash, source) VALUES (?, ?, ?, ?, ?)'
|
|
|
+ let r = await db.query(sql, [id, time, uuid, hash, 'hand'])
|
|
|
if(!r || r.affectedRows !== 1)
|
|
|
return res.json({
|
|
|
...BaseStdResponse.ERR,
|