修复BUG

This commit is contained in:
aixianling
2022-06-24 10:09:26 +08:00
parent eaaf373137
commit 569fdcabe7

View File

@@ -5,7 +5,7 @@ module.exports = {
execute: (request, response) => {
let total = 0, records = [], {size, current, name} = request.query
Promise.all([
dbUtils.query(`select 1 from node_autodeploy where name like '%${name}%'where name like '%${name}%'`).then(res => {
dbUtils.query(`select 1 from node_autodeploy where name like '%${name}%'`).then(res => {
return total = res.length
}),
new Promise(resolve => {