Skip to content

Commit c1f03dc

Browse files
committed
Add sort for blobs
1 parent b6a4f53 commit c1f03dc

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

services/api/block.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ export const fetchBlockBlobs = async ({ height, limit, offset, sort }) => {
9494
try {
9595
const url = new URL(`${useServerURL()}/block/${height}/blobs`)
9696

97+
url.searchParams.append("sort_by", 'time')
98+
9799
if (limit) url.searchParams.append("limit", limit)
98100
if (offset) url.searchParams.append("offset", offset)
99101
if (sort) url.searchParams.append("sort", sort)

services/api/namespace.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ export const fetchNamespaceBlobs = async ({ id, version, limit, offset }) => {
7979
try {
8080
const url = new URL(`${useServerURL()}/namespace/${id}/${version}/blobs`)
8181

82+
url.searchParams.append("sort_by", 'time')
83+
8284
if (limit) url.searchParams.append("limit", limit)
8385
if (offset) url.searchParams.append("offset", offset)
8486

0 commit comments

Comments
 (0)