0
Promise.All返回數組下面的查詢成功註銷查詢結果:Sequelize - 未定義
loans.findAll({
attributes: option.LoanAttributes,
include: option.LoanIncludes
}).then(results => {
console.log(ExtractQuery(results));
});
然而,當我一個promise.all
函數內包裝它,它會返回未定義的數組:
Promise.all([
loans.findAll({
attributes: option.LoanAttributes,
include: option.LoanIncludes
})
]).then(results => {
console.log(ExtractQuery(results));
})