From 1308471a6878e16595ad856e5ecbc625402f6632 Mon Sep 17 00:00:00 2001 From: aixianling Date: Thu, 7 Jul 2022 17:58:18 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9A=E5=88=B6=E9=A1=B9=E7=9B=AE=E6=89=93?= =?UTF-8?q?=E5=8C=85=E6=8E=A5=E5=8F=A3=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/rest/custom/getZip.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/rest/custom/getZip.js b/src/rest/custom/getZip.js index 5e785f2..4a575be 100644 --- a/src/rest/custom/getZip.js +++ b/src/rest/custom/getZip.js @@ -6,7 +6,8 @@ module.exports = { action: "/node/custom/getZip", method: "post", execute: (request, response) => { - let {id} = request.query, uniCon = `id='${id}'`.db.query(`select * from node_custom_config where id='${id}'`).then(res => { + let {id} = request.query, uniCon = `id='${id}'` + db.query(`select * from node_custom_config where id='${id}'`).then(res => { let info = res?.[0], sql if (info?.id) { sql = `update node_custom_config set download=null,error=null,zipTime='${dayjs().format("YYYY-MM-DD HH:mm:ss")}' where ${uniCon}`