From be0732bbd1955a23ba625019da6ba2e9f9a88ba6 Mon Sep 17 00:00:00 2001 From: aixianling Date: Thu, 26 May 2022 18:51:49 +0800 Subject: [PATCH] =?UTF-8?q?=E7=B2=BE=E7=AE=80=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/rest/autodeploy/getZip.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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}'`)