diff --git a/src/rest/autodeploy/list.js b/src/rest/autodeploy/list.js index 2f4ea4a..24fa1b7 100644 --- a/src/rest/autodeploy/list.js +++ b/src/rest/autodeploy/list.js @@ -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 => {