增加计算打包时间功能

This commit is contained in:
aixianling
2022-06-17 11:06:52 +08:00
parent 29701488e0
commit a57d6741ad

View File

@@ -11,7 +11,7 @@ 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}'`).then(() => {
db.query(`update node_autodeploy set download=null,error=null,zipTime='${dayjs().format("YYYY-MM-DD HH:mm:ss")}' where id='${info.id}'`).then(() => {
fse.emptydir(info.target, () => {
response.send({code: 0})
})