Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sorting by timestamp for /blog endpoint #92

Merged
merged 2 commits into from
Oct 6, 2021

Conversation

brishtiteveja
Copy link
Collaborator

Sorting options by timestamp (asc/desc) for /blog endpoint

This potentially works towards #66

Sorting by oldest to newest (ts:-1) is done by sortBy=desc
Sorting by newest to oldest (ts:1) is done by sortBy=asc

query example:
$API_URL/blog/d00k13/filter:sortBy=desc&limit=100000
$API_URL/blog/d00k13/filter:sortBy=asc&limit=100

@brishtiteveja
Copy link
Collaborator Author

@techcoderx sorting by timestamp is now added to resolve #66

@techcoderx
Copy link
Collaborator

Merging this without testing it myself as many of you are probably already running this in production nodes

@techcoderx techcoderx merged commit 38cf311 into dtube:master Oct 6, 2021
@brishtiteveja
Copy link
Collaborator Author

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants