reversed order of channel claims

This commit is contained in:
bill bittner 2018-06-10 21:11:37 -07:00
parent dd6b1d0203
commit 439d2af67b

View file

@ -227,7 +227,7 @@ module.exports = (sequelize, { STRING, BOOLEAN, INTEGER, TEXT, DECIMAL }) => {
this
.findAll({
where: { certificateId: channelClaimId },
order: [['height', 'ASC']],
order: [['height', 'DESC']],
raw : true, // returns an array of only data, not an array of instances
})
.then(channelClaimsArray => {