reversed order of channel claims
This commit is contained in:
parent
dd6b1d0203
commit
439d2af67b
1 changed files with 1 additions and 1 deletions
|
@ -227,7 +227,7 @@ module.exports = (sequelize, { STRING, BOOLEAN, INTEGER, TEXT, DECIMAL }) => {
|
||||||
this
|
this
|
||||||
.findAll({
|
.findAll({
|
||||||
where: { certificateId: channelClaimId },
|
where: { certificateId: channelClaimId },
|
||||||
order: [['height', 'ASC']],
|
order: [['height', 'DESC']],
|
||||||
raw : true, // returns an array of only data, not an array of instances
|
raw : true, // returns an array of only data, not an array of instances
|
||||||
})
|
})
|
||||||
.then(channelClaimsArray => {
|
.then(channelClaimsArray => {
|
||||||
|
|
Loading…
Add table
Reference in a new issue