精简代码
This commit is contained in:
@@ -10,7 +10,9 @@ module.exports = {
|
||||
db.query(sql).then(res => {
|
||||
let info = res?.[0]
|
||||
if (info?.id) {
|
||||
db.query(`update node_autodeploy set download=null,error=null where id='${info.id}'`)
|
||||
db.query(`update node_autodeploy set download=null,error=null where id='${info.id}'`).then(() => {
|
||||
setTimeout(() => response.send({code: 0}), 2000)
|
||||
})
|
||||
execute(`${info.updateShell}`).then(() => execute(`${info.libShell}`))
|
||||
.then(() => {
|
||||
db.query(`update node_autodeploy set download='${dayjs().format("YYYY-MM-DD HH:mm:ss")}',error='' where id='${info.id}'`)
|
||||
|
||||
Reference in New Issue
Block a user