async en_exec_list ()
{
console.log("************************************************")
// //ID
var sql = "SELECT * FROM en_del_products WHERE STATE = 0 limit 1";
var waitList = await mysql_auto_db.await_query(sql);
for( let doc of waitList)
{
let c= await ftp_db.await_query({
action: "delete",
offlinePath: "www/1.txt"
});
console.log(c)
}
console.log("************************************************")
}
Hello, what can I do to wait for the end of the for execution before the end of the print run?
ftp_db.await_query is self-encapsulated and used to delete files in FTP.
current error message: