精简代码

This commit is contained in:
aixianling
2022-05-26 18:51:49 +08:00
parent bc2062ec76
commit be0732bbd1

View File

@@ -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}'`)