From 439d2af67b5fae7430b48bacf3de2ba5361a6085 Mon Sep 17 00:00:00 2001 From: bill bittner Date: Sun, 10 Jun 2018 21:11:37 -0700 Subject: [PATCH] reversed order of channel claims --- server/models/claim.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/models/claim.js b/server/models/claim.js index 4200e485..0759f621 100644 --- a/server/models/claim.js +++ b/server/models/claim.js @@ -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 => {