Skip to content

Commit ceae491

Browse files
committed
revert next token logic
1 parent 70d2904 commit ceae491

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

stac_fastapi/opensearch/stac_fastapi/opensearch/database_logic.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -275,9 +275,7 @@ async def get_all_collections(
275275
# Ensure we have a valid sort value for next_token
276276
next_token_values = hits[-1].get("sort")
277277
if next_token_values:
278-
next_token = urlsafe_b64encode(
279-
json.dumps(next_token_values).encode()
280-
).decode()
278+
next_token = next_token_values[0]
281279

282280
return collections, next_token
283281

0 commit comments

Comments
 (0)