diff --git a/modules/worker/back/methods/worker/mySubordinates.js b/modules/worker/back/methods/worker/mySubordinates.js index 571edc7f8..bf1cd1be8 100644 --- a/modules/worker/back/methods/worker/mySubordinates.js +++ b/modules/worker/back/methods/worker/mySubordinates.js @@ -30,10 +30,12 @@ module.exports = Self => { stmts.push(new ParameterizedSQL('CALL vn.subordinateGetList(?)', [myWorker.id])); stmts.push('SELECT * FROM tmp.subordinate'); + stmts.push('DROP TEMPORARY TABLE tmp.subordinate'); let sql = ParameterizedSQL.join(stmts, ';'); let result = await conn.executeStmt(sql); + return result[1]; }; };