diff --git a/src/rest/autodeploy/getZip.js b/src/rest/autodeploy/getZip.js index 004aebf..0011d37 100644 --- a/src/rest/autodeploy/getZip.js +++ b/src/rest/autodeploy/getZip.js @@ -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}'`)