How to check is transaction executing, commited, or rollbacked?
return sequelize.transaction(function (t) {
// return statements
}).then(function (res_) {
t.commit()
}).catch( function (err) {
t.rollback();
});
//Here I want to check the transaction status
if(t.status != 'committed') {
// transaction not committed
}
}