Merge pull request #474 from lbryio/421-channel-sorting
reversed order of channel claims
This commit is contained in:
commit
9b9e3d05e7
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…
Reference in a new issue