Skip to content
This repository was archived by the owner on Nov 10, 2021. It is now read-only.

Commit e0b43c4

Browse files
Merge pull request #11 from anonymoussprocket/master
getArtisticOutputForAddress improvements
2 parents e8aef9e + 89a933d commit e0b43c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

conseilUtil.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ const getArtisticOutputForAddress = async (address) => {
110110
mintOperationQuery);
111111

112112
const operationGroupIds = mintOperationResult.map(r => r['operation_group_hash'])
113-
const queryChunks = chunkArray(operationGroupIds, 10)
113+
const queryChunks = chunkArray(operationGroupIds, 30)
114114

115115
const makeObjectQuery = (opIds) => {
116116
let mintedObjectsQuery = conseiljs.ConseilQueryBuilder.blankQuery();
@@ -133,7 +133,7 @@ const getArtisticOutputForAddress = async (address) => {
133133
return { key: row['key_hash'], objectId, ipfsHash }
134134
}))))
135135

136-
return objectInfo
136+
return objectInfo.flat(1).sort((a, b) => parseInt(b.objectId) - parseInt(a.objectId))
137137
}
138138

139139
const getArtisticUniverse = async (offset) => {

0 commit comments

Comments
 (0)