Skip to content

Commit 02e9026

Browse files
committed
Fix the order of getByAddress() of CCCChange
1 parent 43e7a0f commit 02e9026

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/models/logic/cccChange.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,10 @@ export async function getByAddress(
268268
firstEvaluatedKey || lastEvaluatedKey
269269
? 0
270270
: (page - 1) * itemsPerPage,
271-
order: [["blockNumber", "DESC"], ["id", "DESC"]],
271+
order: cccChangesPagination.byAccount.orderby({
272+
firstEvaluatedKey,
273+
lastEvaluatedKey
274+
}),
272275
logging: console.log
273276
});
274277
} catch (err) {

0 commit comments

Comments
 (0)