do a simple sort on $loki id

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2018-12-14 00:49:53 +01:00
parent 775c850005
commit 5ef9bb30a2
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020

View File

@ -49,7 +49,7 @@ class Builds {
async getBuilds (pr) {
const builds = await this.builds.chain()
.find({pr})
.sort(this.buildsSort)
.simplesort('$loki')
.data()
/* strip the $loki attribute */
return builds.map((b) => {