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}`